Could not find a declaration file for module 'eslint-plugin-import'
Unique-Pixels opened this issue · 4 comments
Unique-Pixels commented
Using latest eslint with flat config in a TS project. Need type declarations.
ljharb commented
We don't currently ship any (and they're not required to be able to use the plugin)
soryy708 commented
Try this:
npm install eslint-plugin-import --save-dev
as part of
fabulousgk commented
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
have the same type checking problem, but the plugin itself works