eslintrc: allow 3 chained calls on one line
We have some semi-reasonable patterns of code which chain 3 calls on a single line. Unfortunately there doesn't seem to be a way to distinguish between chaining for promises and for other things (like text manipulation). Line length can be a proxy for that, though.
This commit is contained in:
parent
f743ee7709
commit
fe5f5be98e
|
@ -26,7 +26,7 @@
|
|||
"MemberExpression": 2,
|
||||
"ignoredNodes": [ "JSXAttribute" ]
|
||||
}],
|
||||
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
|
||||
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
|
||||
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
||||
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
|
||||
"no-var": "error",
|
||||
|
|
Loading…
Reference in New Issue