Skip to content

Commit

Permalink
[eslint config] [base] [patch] newline-per-chained-call: bump the l…
Browse files Browse the repository at this point in the history
…imit to 4.

Specifically, this is to allow this frequent pattern:
```js
$.ajax({
  …
}).done(() => {
  …
}).fail(() => {
  …
}).always(() => {
  …
});
```
  • Loading branch information
ljharb committed Jul 5, 2016
1 parent 9028379 commit 1f87054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f87054

Please sign in to comment.