@samitouri / QOS-React-2 / commits / f28eef3dca

[eslint] Disable no-constant-condition and no-fallthrough

Lauren Tan committed Feb 28, 2023 at 19:19 UTC f28eef3dca46156b81dfd6495354f2471d038997
1 file changed +9
compiler/forget/.eslintrc.js
+9
@@ -15,6 +15,15 @@ module.exports = {
15
16 // Not valuable enough to enable
17 "no-useless-escape": "off",
18 +
19 + // There are valid use cases for loops with constant conditions where the body contains the
20 + // break
21 + "no-constant-condition": "off",
22 +
23 + // eslint only knows about builtin control flow (eg throw, return, break) and not custom ones
24 + // like invariant.
25 + "no-fallthrough": "off",
26 +
27 "@typescript-eslint/no-empty-function": "off",
28
29 // Explicitly casting to/through any is sometimes required, often for error messages to