method InsertFinalNewLineTransformation.prototype.executeSync
InsertFinalNewLineTransformation.prototype.executeSync(rules: string[]): string[]

Ensures the file ends with a newline.

Parameters

rules: string[]
  • Array of rules to process

Return Type

string[]

Array with final newline

Usage

import { InsertFinalNewLineTransformation } from ".";