We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89b733 commit e2457faCopy full SHA for e2457fa
1 file changed
compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts
@@ -100,7 +100,6 @@ function makeSuggestions(
100
101
const COMPILER_OPTIONS: Partial<PluginOptions> = {
102
noEmit: true,
103
- compilationMode: 'infer',
104
panicThreshold: 'none',
105
};
106
@@ -161,9 +160,16 @@ const rule: Rule.RuleModule = {
161
160
detail.loc != null && typeof detail.loc !== 'symbol'
162
? ` (@:${detail.loc.start.line}:${detail.loc.start.column})`
163
: '';
+ const firstLineLoc = {
164
+ start: event.fnLoc.start,
165
+ end: {
166
+ line: event.fnLoc.start.line,
167
+ column: 10e3,
168
+ },
169
+ };
170
context.report({
171
message: `[ReactCompilerBailout] ${detail.reason}${locStr}`,
- loc: event.fnLoc,
172
+ loc: firstLineLoc,
173
suggest,
174
});
175
}
0 commit comments