-
Notifications
You must be signed in to change notification settings - Fork 885
Autofix file should end with a newline #2186
Autofix file should end with a newline #2186
Comments
I wouldn't mind trying to fix this but I'm not sure when I'd have the time |
How do you know which line ending to choose? |
Good point. |
It just checks if the last character is |
Is it possible to check what the value of the |
Nope, currently each rule is limited to its own configuration. |
I don't think we want rules reading options that don't belong to it. I'm fine with only fixing files with multiple lines. |
Linebreak style is determined by the first line break in the file. If there is only one line, there will be no fix. Fixes: #2186. Also reorganized the test files. [new-fixer] `eofline`
hi there |
Bug Report
TSLint version: 4.0.2
TypeScript version: 2.1.4
Running TSLint via: CLI
TypeScript code being linted
Enable the file end with newline rule, and see that it fails the linter.
TSLint could autofix this error. It currently does not.
The text was updated successfully, but these errors were encountered: