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 32f6ca141eaab..359db08cd7085 100644 --- a/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts +++ b/compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts @@ -100,7 +100,6 @@ function makeSuggestions( const COMPILER_OPTIONS: Partial = { noEmit: true, - compilationMode: 'infer', panicThreshold: 'none', }; @@ -161,9 +160,16 @@ const rule: Rule.RuleModule = { detail.loc != null && typeof detail.loc !== 'symbol' ? ` (@:${detail.loc.start.line}:${detail.loc.start.column})` : ''; + const firstLineLoc = { + start: event.fnLoc.start, + end: { + line: event.fnLoc.start.line, + column: 10e3, + }, + }; context.report({ message: `[ReactCompilerBailout] ${detail.reason}${locStr}`, - loc: event.fnLoc, + loc: firstLineLoc, suggest, }); }