We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09c1434 commit 1fb14fdCopy full SHA for 1fb14fd
compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts
@@ -166,16 +166,9 @@ const rule: Rule.RuleModule = {
166
detail.loc != null && typeof detail.loc !== 'symbol'
167
? ` (@:${detail.loc.start.line}:${detail.loc.start.column})`
168
: '';
169
- const firstLineLoc = {
170
- start: event.fnLoc.start,
171
- end: {
172
- line: event.fnLoc.start.line,
173
- column: 10e3,
174
- },
175
- };
176
context.report({
177
message: `[ReactCompilerBailout] ${detail.reason}${locStr}`,
178
- loc: firstLineLoc,
+ loc: event.fnLoc,
179
suggest,
180
});
181
}
0 commit comments