mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 23:37:55 -05:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user