import-js / eslint-plugin-import

ESLint plugin with rules that help validate proper imports.
MIT License
5.57k stars 1.57k forks source link

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

Open fabulousgk opened 4 weeks ago

fabulousgk commented 4 weeks ago

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

ljharb commented 4 weeks ago

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

soryy708 commented 4 weeks ago

Try this:

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

as part of

fabulousgk commented 4 weeks ago

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 commented 3 weeks ago

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