From f28eef3dca46156b81dfd6495354f2471d038997 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 28 Feb 2023 19:19:37 -0500 Subject: [PATCH] [eslint] Disable no-constant-condition and no-fallthrough --- compiler/forget/.eslintrc.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/compiler/forget/.eslintrc.js b/compiler/forget/.eslintrc.js index a9b49faeeb..45040277cb 100644 --- a/compiler/forget/.eslintrc.js +++ b/compiler/forget/.eslintrc.js @@ -15,6 +15,15 @@ module.exports = { // Not valuable enough to enable "no-useless-escape": "off", + + // There are valid use cases for loops with constant conditions where the body contains the + // break + "no-constant-condition": "off", + + // eslint only knows about builtin control flow (eg throw, return, break) and not custom ones + // like invariant. + "no-fallthrough": "off", + "@typescript-eslint/no-empty-function": "off", // Explicitly casting to/through any is sometimes required, often for error messages to