Skip to content

Commit

Permalink
Fine tune eslint
Browse files Browse the repository at this point in the history
Support no-indentation for file-level if block or
arrow function block.
  • Loading branch information
gorhill committed Mar 18, 2024
1 parent 38b325e commit 950b5ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 950b5ea

Please sign in to comment.