File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,13 @@ async function lint(
200
200
eslintVersion : eslintVersion ,
201
201
lintedFilesCount : results . length ,
202
202
lintFix : ! ! options . fix ,
203
- nextEslintPluginVersion : nextEslintPluginIsEnabled
204
- ? require ( path . join (
205
- path . dirname ( deps . resolved . get ( 'eslint-config-next' ) ! ) ,
206
- 'package.json'
207
- ) ) . version
208
- : null ,
203
+ nextEslintPluginVersion :
204
+ nextEslintPluginIsEnabled && deps . resolved . has ( 'eslint-config-next' )
205
+ ? require ( path . join (
206
+ path . dirname ( deps . resolved . get ( 'eslint-config-next' ) ! ) ,
207
+ 'package.json'
208
+ ) ) . version
209
+ : null ,
209
210
nextEslintPluginErrorsCount : formattedResult . totalNextPluginErrorCount ,
210
211
nextEslintPluginWarningsCount :
211
212
formattedResult . totalNextPluginWarningCount ,
You can’t perform that action at this time.
0 commit comments