Skip to content

Commit

Permalink
Revert "[compiler][eslint] remove compilationMode override; report ba…
Browse files Browse the repository at this point in the history
…ilouts on first line"

This reverts commit b34b750.

This hack doesn't play well internally so I'm reverting this for now
(but keeping the compilationMode override). I'll audit the locations we
report later and try to make them more accurate so we won't need this
workaround.

ghstack-source-id: b6be29c11d5e2eae3004ee74cba1b080894c963a
Pull Request resolved: #30792
  • Loading branch information
poteto committed Aug 22, 2024
1 parent eb7570b commit b57d282
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,9 @@ 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: firstLineLoc,
loc: event.fnLoc,
suggest,
});
}
Expand Down

0 comments on commit b57d282

Please sign in to comment.