mirror of https://github.com/gorhill/uBlock.git
Fine tune eslint
Support no-indentation for file-level if block or arrow function block.
This commit is contained in:
parent
38b325ecce
commit
950b5ea55e
|
@ -9,13 +9,14 @@ rules:
|
|||
- warn
|
||||
- always
|
||||
indent:
|
||||
- warn
|
||||
- error
|
||||
- 4
|
||||
-
|
||||
ignoredNodes:
|
||||
- Program > IfStatement > *
|
||||
noControlRegex: off
|
||||
noEmpty: off
|
||||
- Program > IfStatement > BlockStatement
|
||||
- Program > ExpressionStatement > CallExpression > ArrowFunctionExpression > BlockStatement
|
||||
no-control-regex: off
|
||||
no-empty: off
|
||||
sort-imports: warn
|
||||
strict: warn
|
||||
globals:
|
||||
|
|
Loading…
Reference in New Issue