Fine tune eslint

Support no-indentation for file-level if block or
arrow function block.
This commit is contained in:
Raymond Hill 2024-03-18 11:08:52 -04:00
parent 38b325ecce
commit 950b5ea55e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 5 additions and 4 deletions

View File

@ -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: