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:
Allison Karlitskaya 2022-03-28 12:18:48 +02:00
parent f743ee7709
commit fe5f5be98e
1 changed files with 1 additions and 1 deletions

View File

@ -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",