eslint vs typescript 5.4

5.4.3 is being pulled by nuxt but eslint doesn't like it even if I explictly install the latest vite-plugin-eslint@latest and @typescript-eslint/typescript-estree. any idea what else needs upgrading?
WARN warning: LintOnStart is turned on, and it will check for all matching files.
Plugin: vite-plugin-eslint

=============

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.3.5 <5.4.0

YOUR TYPESCRIPT VERSION: 5.4.3

Please only submit bug reports when using the officially supported version.

=============
WARN warning: LintOnStart is turned on, and it will check for all matching files.
Plugin: vite-plugin-eslint

=============

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.3.5 <5.4.0

YOUR TYPESCRIPT VERSION: 5.4.3

Please only submit bug reports when using the officially supported version.

=============
13 Replies
manniL
manniL9mo ago
just wait until typescript-estree will get an update I'd say 🙂
Alejandro Mery
Alejandro MeryOP9mo ago
I had assumed nuxt developers wouldn't have pushed into 5.4.x territory before eslint would support it. but if everyone else is getting the same message I'll just wait 🙂
Cue
Cue9mo ago
5.4 support was added in v7.2 (7.4 is latest) so it’s likely estree hasn’t updated given its way down the dependency tree. I’d nuke your lock file and node_modules to refresh, and try again.
Alejandro Mery
Alejandro MeryOP9mo ago
I tried nuking the lock file and deleting every node_modules directory, and explicitly installing typescript 5.3.3. same issue. and tried the other way, explicitly installing [email protected] and @typescript-eslint/[email protected] and again deleting the lock file and every node_modules directory. no luck. could it be pnpm's fault?
Cue
Cue9mo ago
Not sure. I use pnpm also, but I don’t have these issues. Might be an issue exclusive to the vite plugin? I don’t use it.
Alejandro Mery
Alejandro MeryOP9mo ago
how do you lint/reformat?
Cue
Cue9mo ago
With eslint. Linting rules are afforded by @nuxt/eslint-config and formatting I extend with additional rules.
Alejandro Mery
Alejandro MeryOP9mo ago
I use the same rules. I'll disable the vite plugin and trust the IDE's eslint plugin for to save things tidy
Cue
Cue9mo ago
Check this out for more info https://github.com/nuxt/eslint
GitHub
GitHub - nuxt/eslint: Collection of ESLint-related packages for Nuxt
Collection of ESLint-related packages for Nuxt. Contribute to nuxt/eslint development by creating an account on GitHub.
Alejandro Mery
Alejandro MeryOP9mo ago
so, vite-plugin-eslint hasn't been touched in 2 years, so I should be using a fork instead. @nabla/vite-plugin-eslint nope. wrong
Alejandro Mery
Alejandro MeryOP9mo ago
https://github.com/nuxt/eslint/releases beta.7 is newer than beta.8 😭
GitHub
Releases · nuxt/eslint
Collection of ESLint-related packages for Nuxt. Contribute to nuxt/eslint development by creating an account on GitHub.
Alejandro Mery
Alejandro MeryOP9mo ago
I found the root problem, I was using @nuxtjs/eslint-module instead of @nuxt/eslint as module and remove all references to vite-plugin-eslint thank you the link @cuebit 🙂 it took me too long to see my mistake 😕
Cue
Cue9mo ago
Glad you found a solution in the end!
Want results from more Discord servers?
Add your server