mirror of https://github.com/Chocobozzz/PeerTube
Add no-constant-binary-expression eslint rule
https://eslint.org/blog/2022/07/interesting-bugs-caught-by-no-constant-binary-expression/pull/6157/head
parent
8d1f0853cc
commit
c37b19ffa9
|
@ -40,6 +40,9 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"quotes": "off",
|
"quotes": "off",
|
||||||
|
|
||||||
|
"no-constant-binary-expression": "error",
|
||||||
|
|
||||||
"@typescript-eslint/indent": [
|
"@typescript-eslint/indent": [
|
||||||
"error",
|
"error",
|
||||||
2,
|
2,
|
||||||
|
|
|
@ -159,7 +159,8 @@
|
||||||
"quote-props": [
|
"quote-props": [
|
||||||
"error",
|
"error",
|
||||||
"consistent-as-needed"
|
"consistent-as-needed"
|
||||||
]
|
],
|
||||||
|
"no-constant-binary-expression": "error"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue