🔧 This rule is automatically fixable by the --fix CLI option.
Require or disallow newline at the end of template files.
This rule enforces at least one newline (or no newline) at the end of template files.
This rule accepts a single string option:
"always"(default) — enforces that template files end with a newline"editorconfig"— requires or disallows a final newline based on the project's.editorconfigsettings (viainsert_final_newline); throws ifinsert_final_newlineis not set"never"— enforces that template files do not end with a newline
Examples of incorrect code with the default "always" config:
Examples of correct code with the default "always" config:
Examples of incorrect code with the "never" config:
Examples of correct code with the "never" config:
- eol-last from eslint