[eslint config] [base] [patch] newline-per-chained-call: bump the limit to 4.

Specifically, this is to allow this frequent pattern:
```js
$.ajax({
  …
}).done(() => {
  …
}).fail(() => {
  …
}).always(() => {
  …
});
```
This commit is contained in:
Jordan Harband
2016-06-21 16:55:13 -07:00
parent 9028379f87
commit 1f87054e4b

View File

@@ -119,7 +119,7 @@ module.exports = {
// 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 }],
'newline-per-chained-call': [2, { ignoreChainWithDepth: 4 }],
// disallow use of the Array constructor
'no-array-constructor': 2,