Skip to content

Commit 1fb14fd

Browse files
committed
Update
[ghstack-poisoned]
1 parent 09c1434 commit 1fb14fd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,9 @@ const rule: Rule.RuleModule = {
166166
detail.loc != null && typeof detail.loc !== 'symbol'
167167
? ` (@:${detail.loc.start.line}:${detail.loc.start.column})`
168168
: '';
169-
const firstLineLoc = {
170-
start: event.fnLoc.start,
171-
end: {
172-
line: event.fnLoc.start.line,
173-
column: 10e3,
174-
},
175-
};
176169
context.report({
177170
message: `[ReactCompilerBailout] ${detail.reason}${locStr}`,
178-
loc: firstLineLoc,
171+
loc: event.fnLoc,
179172
suggest,
180173
});
181174
}

0 commit comments

Comments
 (0)