Skip to content

Commit 3777f41

Browse files
committed
tools: enable whitespace related rules in eslint
Enables rules for trailing whitespace, final newline and maximum consecutive empty lines. PR-URL: #1971 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent fb8811d commit 3777f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ rules:
5959
new-parens: 2
6060
## max 80 length
6161
max-len: [2, 80, 2]
62+
## max 2 consecutive empty lines
63+
no-multiple-empty-lines: [2, {max: 2}]
64+
## require newline at end of files
65+
eol-last: 2
66+
## no trailing spaces
67+
no-trailing-spaces: 2
6268

6369
# Strict Mode
6470
# list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode

0 commit comments

Comments
 (0)