[eslint-v2][whitespace] add newline-per-chained-call rule

This commit is contained in:
Harrison Shoff
2016-02-14 11:48:04 -08:00
committed by Jordan Harband
parent fbd9c35dd3
commit 172dffbb52
2 changed files with 9 additions and 2 deletions

View File

@@ -59,6 +59,9 @@ module.exports = {
'new-parens': 0,
// allow/disallow an empty newline after var statement
'newline-after-var': 0,
// enforces new line after each method call in the chain to make it more readable and easy to maintain
// http://eslint.org/docs/rules/newline-per-chained-call
'newline-per-chained-call': [2, { "ignoreChainWithDepth": 3 }],
// disallow use of the Array constructor
'no-array-constructor': 0,
// disallow use of the continue statement