File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
compiler/packages/eslint-plugin-react-compiler/src/rules Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ function makeSuggestions(
100100
101101const COMPILER_OPTIONS : Partial < PluginOptions > = {
102102 noEmit : true ,
103- compilationMode : 'infer' ,
104103 panicThreshold : 'none' ,
105104} ;
106105
@@ -161,9 +160,16 @@ const rule: Rule.RuleModule = {
161160 detail . loc != null && typeof detail . loc !== 'symbol'
162161 ? ` (@:${ detail . loc . start . line } :${ detail . loc . start . column } )`
163162 : '' ;
163+ const firstLineLoc = {
164+ start : event . fnLoc . start ,
165+ end : {
166+ line : event . fnLoc . start . line ,
167+ column : 10e3 ,
168+ } ,
169+ } ;
164170 context . report ( {
165171 message : `[ReactCompilerBailout] ${ detail . reason } ${ locStr } ` ,
166- loc : event . fnLoc ,
172+ loc : firstLineLoc ,
167173 suggest,
168174 } ) ;
169175 }
You can’t perform that action at this time.
0 commit comments