import-js/eslint-plugin-import

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

Unique-Pixels opened this issue · 4 comments

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

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

Try this:

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

as part of

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.

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