Skip to content

Commit

Permalink
feat: add @typescript-eslint/no-unnecessary-condition
Browse files Browse the repository at this point in the history
BREAKING CHANGE: New rule introduced
  • Loading branch information
theoludwig committed Sep 25, 2024
1 parent 6af4b4f commit 12f37d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-unnecessary-template-expression": "error",
"@typescript-eslint/no-unnecessary-condition": [
"error",
{
"allowConstantLoopConditions": true
}
],

"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
Expand Down

0 comments on commit 12f37d0

Please sign in to comment.