From 84d28ebcc54cedfc0c50260ffcf0eaeafcb6bac6 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 6 May 2024 20:07:35 -0400 Subject: [PATCH] Default to raising all errors in eslint plugin We control what gets reported via another function anyway so it's better to raise everything at the compiler config level. This lets us configure what level of diagnostic is reportable later ghstack-source-id: 996d3cbb8d8f3e1bbe943210b8d633420e0f3f3b Pull Request resolved: https://github.com/facebook/react-forget/pull/2935 --- .../eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts b/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts index 8b21f43249..d07b4a4284 100644 --- a/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts +++ b/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts @@ -64,7 +64,7 @@ function isReportableDiagnostic( const COMPILER_OPTIONS: Partial = { noEmit: true, compilationMode: "infer", - panicThreshold: "critical_errors", + panicThreshold: "all_errors", }; const rule: Rule.RuleModule = {