Enforce newline at end of files

Trailing newlines are a common idiom in
programming, and enabling this rule will save
reviewers nitpicking or overlooking missing
trailing newlines.

ESLint also supports the `--fix` option to
automate fixing some of the problems reported by
this rule.

There are no current files in the codebase that
require fixing to add trailing newlines as
verified by `npm run lint`.
This commit is contained in:
0xazure 2018-09-24 17:05:45 -04:00
parent fd3de6be2c
commit 5d88b686cf
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@
"sourceType": "module"
},
"rules": {
"eol-last": [
"error",
"always"
],
"indent": [
"error",
2