eclint icon indicating copy to clipboard operation
eclint copied to clipboard

Empty file with single empty line throws an "expected final newline" error

Open robinmanuelthiel opened this issue 6 years ago • 1 comments

Empty files in the project, which do have just one single empty line (as shown below) throw errors when insert_final_newline = true is set in the .editorconfig.

image

eclint check

#> src/app/components/about/about.component.scss
#       01:01 ❌ expected final newline

Is that an expected behaviour? I would argue, that this file does end with an empty line. Even if it's the only line it has.

robinmanuelthiel avatar Mar 11 '19 09:03 robinmanuelthiel

This also happens with completely empty files, which is a bit silly

JoaRiski avatar Dec 01 '19 14:12 JoaRiski