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
|
- warn
|
||||||
- always
|
- always
|
||||||
indent:
|
indent:
|
||||||
- warn
|
- error
|
||||||
- 4
|
- 4
|
||||||
-
|
-
|
||||||
ignoredNodes:
|
ignoredNodes:
|
||||||
- Program > IfStatement > *
|
- Program > IfStatement > BlockStatement
|
||||||
noControlRegex: off
|
- Program > ExpressionStatement > CallExpression > ArrowFunctionExpression > BlockStatement
|
||||||
noEmpty: off
|
no-control-regex: off
|
||||||
|
no-empty: off
|
||||||
sort-imports: warn
|
sort-imports: warn
|
||||||
strict: warn
|
strict: warn
|
||||||
globals:
|
globals:
|
||||||
|
|
Loading…
Reference in New Issue