-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Type errors with @types/eslint__eslintrc after upgrading to 9.20.0 #177
Comments
Thanks for the report @benedictleejh, I can reproduce the error when I install packages with pnpm. The problem is that The error does not occur with npm because of the different directory structure created under Since this is a problem in |
@fasttime can we update |
@nzakas We could add our type definitions to |
I think that seems like the easiest path forward given how difficult it is to get changes in DefinitelyTyped. |
Actually, let me look into this. We were trying for backwards compatibility with existing types with all of these changes, which was the point of adding all the integration tests. Maybe there's an easy fix here. |
Okay, I'm convinced the only thing that is in our control to fix this is to provide types in the Moving this over to that repo. |
Environment
Node version: v18.20.3
pnpm version: v8.15.6
Local ESLint version: v9.20.0 (Currently used)
Global ESLint version: Not found
Operating System: linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
This the environment in the Stackblitz reproduction.
What parser are you using?
Default (Espree)
What did you do?
After upgrading to ESLint 9.20.0,
eslintrc
'sFlatCompat.extends()
fails typechecking againstLinter.Config[]
What did you expect to happen?
Typechecking would pass, like when using 9.19.0
What actually happened?
Typechecking failed
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-pwrystkr
Participation
Additional comments
This seems to be related to eslint/eslint#19414 and eslint/eslint#19418, where the types broke after ESLint synced its types with
@eslint/core
in eslint/eslint#19157. I had to use pnpm to replicate this issue, npm seems to hide this issue somehow.The text was updated successfully, but these errors were encountered: