Closed dependabot[bot] closed 2 months ago
@dependabot rebase
The latest version eslint-config-next
includes @typescript-eslint/eslint-plugin
, using an older version:
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",
When running npm run lint
, I'd get an error:
ESLint: Plugin "@typescript-eslint" was conflicted between ".eslintrc.js" and ".eslintrc.js » plugin:@typescript-eslint/recommended » ./configs/base".
This FAQ entry suggested running:
npm list @typescript-eslint/eslint-plugin @typescript-eslint/parser
which showed the conflicting versions:
└─┬ frontend@0.1.0 -> ./frontend
├─┬ @typescript-eslint/eslint-plugin@8.4.0
│ └── @typescript-eslint/parser@8.4.0 deduped
├── @typescript-eslint/parser@8.4.0
└─┬ eslint-config-next@14.2.9
├─┬ @typescript-eslint/eslint-plugin@7.2.0
│ └── @typescript-eslint/parser@7.2.0 deduped
└── @typescript-eslint/parser@7.2.0
The fix I'm trying is:
npm uninstall @typescript-eslint/eslint-plugin @typescript-eslint/parser
to remove 8.4.0 of bothnpm fix
to include a semvar
updatenpm prune
to remove from my node_modules
.eslint.rc
to settings suggested by Next.js TypeScript docs.I'm not a fan of downgrading @typescript-eslint/eslint-plugin
@typescript-eslint/parser
, but it doesn't include downgrading typescript
itself, so maybe this is OK and will make it easier to update next.js
when version 15 is ready.
Update: I do see this message in CI, which I don't see locally.
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.5.0
YOUR TYPESCRIPT VERSION: 5.5.4
Thanks for working thru this.
I was able to reproduce this error locally:
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.5.0
YOUR TYPESCRIPT VERSION: 5.5.4
Please only submit bug reports when using the officially supported version.
By doing rm -rf frontend/node_modules
.
Bumps eslint-config-next from 14.2.7 to 14.2.9.
Release notes
Sourced from eslint-config-next's releases.
... (truncated)
Commits
6fa8982
v14.2.963b999c
v14.2.8c021c2f
feat: enable@typescript-eslint/recommended
in create-next-app --typescript (...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show