mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-11-13 22:43:13 +01:00
feat: add @typescript-eslint/no-unnecessary-condition
BREAKING CHANGE: New rule introduced
This commit is contained in:
parent
6af4b4f6ac
commit
12f37d01b3
@ -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": [
|
||||||
|
Loading…
Reference in New Issue
Block a user