Skip to content

Commit

Permalink
[style] use individual var for each variable initialization, enable…
Browse files Browse the repository at this point in the history
… `one-var-declaration-per-line` eslint rule
  • Loading branch information
zloirock committed May 28, 2017
1 parent 29189e4 commit 8cf8d1e
Show file tree
Hide file tree
Showing 398 changed files with 7,120 additions and 7,065 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ module.exports = {
'nonblock-statement-body-position': ['error', 'beside'],
// enforce spaces inside braces
'object-curly-spacing': ['error', 'always'],
// require newlines around variable declarations with initializations
'one-var-declaration-per-line': ['error', 'initializations'],
// enforce padding within blocks
'padded-blocks': ['error', 'never'],
// specify whether double or single quotes should be used
Expand Down
Loading

0 comments on commit 8cf8d1e

Please sign in to comment.