I’ve had this project for over a year now, and doing next lint
has pretty much never worked, i’m not sure why.
Although the error message is in my terminal, it is not succinct, as i’ve tried looking for what it means exactly, but i’ve failed to grasp it.
Here’s the error
> 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.
ELIFECYCLE Command failed with exit code 1.
My best guess is this could be somewhat related to a versioning thing? I’m on next@14.1.4
, eslint@9.15.0
, eslint-config-next@15.3.2
Here’s what my eslintrc.json file contains:
{
"extends": [
"next",
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react-hooks"],
"root": true,
"rules": {
"no-unused-vars": "on",
"@typescript-eslint/no-unused-vars": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}