Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 918 Bytes

eol-last.md

File metadata and controls

37 lines (23 loc) · 918 Bytes

eol-last

👗 The extends: 'stylistic' property in a configuration file enables this rule.

Require or disallow newline at the end of files.

Examples

Enforce either (without newline at end):

<div>test</div>

or this (with newline at end):

<div>test</div>
{{!-- newline would be here  --}}

Configuration

The following values are valid configuration:

  • "always" - enforces that files end with a newline
  • "editorconfig" - requires or disallows final newlines based your projects .editorconfig settings (via insert_final_newline)
  • "never" - enforces that files do not end with a newline'

Related Rules

References