Skip to content

Commit

Permalink
ESLint: Disable autofix for "no-unnecessary-condition"
Browse files Browse the repository at this point in the history
This disables autofix specifically for the "no-unnecessary-condition" rule. This allows us to continue using autofix without applying the breaking changes.
  • Loading branch information
regexowl committed Jan 20, 2025
1 parent 92a6fb5 commit 16cfd89
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ parserOptions:
project: ["tsconfig.json"]
plugins:
- import
- disable-autofix
rules:
import/order:
- error
Expand Down Expand Up @@ -51,7 +52,7 @@ rules:
ts-check: true
minimumDescriptionLength: 5
"@typescript-eslint/ban-types": off
"@typescript-eslint/no-unnecessary-condition": warn
disable-autofix/@typescript-eslint/no-unnecessary-condition: warn
# Temporarily disabled
jsx-a11y/no-autofocus: off
rulesdir/forbid-pf-relative-imports: off
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"copy-webpack-plugin": "12.0.2",
"css-loader": "7.1.2",
"eslint": "8.57.1",
"eslint-plugin-disable-autofix": "5.0.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-jsx-a11y": "6.10.2",
Expand Down

0 comments on commit 16cfd89

Please sign in to comment.