mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2025-05-18 12:02:33 +02:00
feat: add @typescript-eslint/no-unnecessary-condition
BREAKING CHANGE: New rule introduced
This commit is contained in:
@ -228,6 +228,12 @@
|
|||||||
"no-useless-constructor": "off",
|
"no-useless-constructor": "off",
|
||||||
"@typescript-eslint/no-useless-constructor": "error",
|
"@typescript-eslint/no-useless-constructor": "error",
|
||||||
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
||||||
|
"@typescript-eslint/no-unnecessary-condition": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"allowConstantLoopConditions": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
"@typescript-eslint/adjacent-overload-signatures": "error",
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
||||||
"@typescript-eslint/array-type": [
|
"@typescript-eslint/array-type": [
|
||||||
|
Reference in New Issue
Block a user