Add no-constant-binary-expression eslint rule

https://eslint.org/blog/2022/07/interesting-bugs-caught-by-no-constant-binary-expression/
This commit is contained in:
Chocobozzz 2023-12-20 10:59:31 +01:00
parent 8d1f0853cc
commit c37b19ffa9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,9 @@
}
],
"quotes": "off",
"no-constant-binary-expression": "error",
"@typescript-eslint/indent": [
"error",
2,

View File

@ -159,7 +159,8 @@
"quote-props": [
"error",
"consistent-as-needed"
]
],
"no-constant-binary-expression": "error"
}
},
{