Skip to content
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

Invalid types for @types/eslint-plugin-jsx-a11y #1010

Open
nbouvrette opened this issue Sep 2, 2024 · 2 comments
Open

Invalid types for @types/eslint-plugin-jsx-a11y #1010

nbouvrette opened this issue Sep 2, 2024 · 2 comments

Comments

@nbouvrette
Copy link

I tried to install @types/eslint-plugin-jsx-a11y because eslint-plugin-jsx-a11y isn't provided with types and I am getting build errors:

node_modules/@types/eslint-plugin-jsx-a11y/index.d.ts:5:29 - error TS2694: Namespace '"/example/node_modules/@types/eslint/index".Linter' has no exported member 'LegacyConfig'.

5         recommended: Linter.LegacyConfig;

Are those types still supported? is there a way to get types? The only solution I found for now was to disable types

@ljharb
Copy link
Member

ljharb commented Sep 2, 2024

The DT package is entirely distinct, and I don't maintain them (altho I'm happy to review PRs that bring them up to date)

It seems like perhaps the DT package requires eslint 7 or 8, and you might be using eslint 8 or 9?

@michaelfaith
Copy link
Contributor

michaelfaith commented Sep 29, 2024

Which version of @types/eslint do you have installed? It looks like the latest @types/eslint-plugin-jsx-a11y is based on the v9 (or possibly 8.57) @types/eslint

@types/eslint-plugin-jsx-a11y 6.9.0
image

@types/eslint 9.6.1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants