class InsertFinalNewLineTransformation

Transformation that ensures the file ends with a newline.

Properties

readonly
name: string

Human-readable name of the transformation

The transformation type identifier

Methods

executeSync(rules: string[]): string[]

Ensures the file ends with a newline.

Usage

import { InsertFinalNewLineTransformation } from ".";