mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 20:21:35 +01:00
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…
x
Reference in New Issue
Block a user