From b68c409a6b8adb0e58d978b4d085b1197c030ac9 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Thu, 15 Jun 2023 14:34:46 -0400 Subject: [PATCH] [eslint-plugin] Throw non CompilerErrors --- .../src/rules/ReactForgetDiagnostics.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts index 01a5ce57fe..a3bf506f86 100644 --- a/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts +++ b/compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts @@ -48,6 +48,8 @@ const rule: Rule.RuleModule = { }); } } + } else { + throw new Error(err); } } },