Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Could not find a declaration file for module 'eslint-plugin-import' #3090

Open
fabulousgk opened this issue Oct 23, 2024 · 4 comments · May be fixed by #3097
Open

Could not find a declaration file for module 'eslint-plugin-import' #3090

fabulousgk opened this issue Oct 23, 2024 · 4 comments · May be fixed by #3097

Comments

@fabulousgk
Copy link

Using latest eslint with flat config in a TS project. Need type declarations.

@ljharb
Copy link
Member

ljharb commented Oct 23, 2024

We don't currently ship any (and they're not required to be able to use the plugin)

@soryy708
Copy link
Contributor

soryy708 commented Oct 24, 2024

Try this:

npm install eslint-plugin-import --save-dev

as part of

@fabulousgk
Copy link
Author

Yeah, so the issue it that typescript-eslint tells you to put //@ts-check on your config file which then produces a slew of errors due to missing type declarations. To be fair this is not the only package that is missing type defs, so yeah. For now I am just removing that, really no need to be on the config tbh.

Would still be nice to have them, but probably not a priority.

@Sanshain
Copy link

have the same type checking problem, but the plugin itself works

@G-Rath G-Rath linked a pull request Nov 8, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants