Skip to content

Commit

Permalink
tools: enable whitespace related rules in eslint
Browse files Browse the repository at this point in the history
Enables rules for trailing whitespace, final newline and maximum
consecutive empty lines.

PR-URL: #1971
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
silverwind committed Jun 15, 2015
1 parent fb8811d commit 3777f41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ rules:
new-parens: 2
## max 80 length
max-len: [2, 80, 2]
## max 2 consecutive empty lines
no-multiple-empty-lines: [2, {max: 2}]
## require newline at end of files
eol-last: 2
## no trailing spaces
no-trailing-spaces: 2

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

0 comments on commit 3777f41

Please sign in to comment.