Default eslint doesn't work
Unanswered
southclaws posted this in #help-forum
Following the docs on the latest version: https://nextjs.org/docs/app/building-your-application/configuring/eslint
Results in:
Results in:
⯠yarn next lint
yarn run v1.22.21
$ /Users/southclaws/work/me/node_modules/.bin/next lint
Invalid Options:
- Unknown options: useEslintrc, extensions, resolvePluginsRelativeTo, rulePaths, ignorePath, reportUnusedDisableDirectives
- 'extensions' has been removed.
- 'resolvePluginsRelativeTo' has been removed.
- 'ignorePath' has been removed.
- 'rulePaths' has been removed. Please define your rules using plugins.
- 'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.4 Replies
@southclaws Following the docs on the latest version: https://nextjs.org/docs/app/building-your-application/configuring/eslint
Results in:
⯠yarn next lint
yarn run v1.22.21
$ /Users/southclaws/work/me/node_modules/.bin/next lint
Invalid Options:
- Unknown options: useEslintrc, extensions, resolvePluginsRelativeTo, rulePaths, ignorePath, reportUnusedDisableDirectives
- 'extensions' has been removed.
- 'resolvePluginsRelativeTo' has been removed.
- 'ignorePath' has been removed.
- 'rulePaths' has been removed. Please define your rules using plugins.
- 'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
i dont think you can use eslint v9 yet as nextjs uses some removed features: https://github.com/vercel/next.js/issues/64136
(note i just got a similar error and was eited to upgrade but then realise i cant really becuse of the errors made from removing)
ah makes sense, thanks!
I upgraded everything and I guess eslint got caught in that