Unverified Commit e68ce6e9 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

fix(next): eslint v9 not picking up config (#71298)

parent b14b0ffd
...@@ -135,9 +135,11 @@ async function lint( ...@@ -135,9 +135,11 @@ async function lint(
const mod = await Promise.resolve(require(deps.resolved.get('eslint')!)) const mod = await Promise.resolve(require(deps.resolved.get('eslint')!))
const useFlatConfig = // If V9 config was found, use flat config, or else use legacy.
// If V9 config was found, use flat config, or else use legacy. const useFlatConfig = eslintrcFile
eslintrcFile?.startsWith('eslint.config.') ? // eslintrcFile is absolute path
path.basename(eslintrcFile).startsWith('eslint.config.')
: false
let ESLint let ESLint
// loadESLint is >= 8.57.0 // loadESLint is >= 8.57.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment