next lint
does not recognize eslint.config.js
#64453
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
Linting
Related to `next lint` or ESLint with Next.js.
Link to the code that reproduces this issue
https://github.com/leetdavid/nextjstest
To Reproduce
pnpm create next-app
with ESLint Enabled.eslintrc.json
toeslint.config.js
pnpm lint
and it will create yet another.eslintrc.json
after prompting.Current vs. Expected behavior
I expect
next lint
to recognize theeslint.config.js
file, but it does not.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Thu Jan 11 04:09:03 UTC 2024 Available memory (MB): 31658 Available CPU cores: 32 Binaries: Node: 21.7.1 npm: 10.5.0 Yarn: N/A pnpm: 8.15.6 Relevant Packages: next: 14.2.1 // Latest available version is detected (14.2.1). eslint-config-next: 14.2.1 react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.5 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
ESLint (eslint-config-next)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I renamed the
.eslintrc.json
file toeslint.config.js
and the above happens.I am using turborepo.
Renaming my eslint file to
.eslintrc.json
file results in another error:pnpm lint
apps/web/.eslintrc.json
(my next.js project path's .eslintrc.json, after renaming fromeslint.config.js
)tools/eslint-config/base.js
tools/eslint-config/nextjs.js
NEXT-3316
The text was updated successfully, but these errors were encountered: