-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
We recently started using add (21) (21) style call expressions at work, and I came up with the following indent rule to facilitate it:
{"indent": ["error", 2, {
"ignoredNodes": ["CallExpression[callee.type='CallExpression']"]
}]}The magic is in the ignoreNodes rule. It says that any CallExpression calling another CallExpression doesn't need to follow indentation rules.
There are many other directives that can be added to the indent rule options to further customize the rules, but they are not relevant to this example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels