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 · 1 comment
Open

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

nbouvrette opened this issue Sep 2, 2024 · 1 comment

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?

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

2 participants