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
Lauren Tan committed
May 6, 2024 at 20:07 UTC
84d28ebcc54cedfc0c50260ffcf0eaeafcb6bac6
1 file changed
+1
-1
compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts
+1
-1
@@ -64,7 +64,7 @@ function isReportableDiagnostic(
64
const COMPILER_OPTIONS: Partial<PluginOptions> = {
65
noEmit: true,
66
compilationMode: "infer",
67
- panicThreshold: "critical_errors",
67
+ panicThreshold: "all_errors",
68
};
69
70
const rule: Rule.RuleModule = {