uhyo / eslint-plugin-import-access

https://www.npmjs.com/package/eslint-plugin-import-access
MIT License
355 stars 9 forks source link

Cannot retrieve TypeScript program for this file import-access/jsdoc #16

Closed MichalGorskiOnegini closed 4 months ago

MichalGorskiOnegini commented 8 months ago

Hey,

so I followed the setup (added config to eslint and tsconfig) and in all of my .tsx files I have the error mentioned above. I see it's specific to this library and I have no idea what it means...

uhyo commented 8 months ago

Hi, it is likely that you need to specify project: true in your typescript-eslint setup. This page should help. https://typescript-eslint.io/linting/typed-linting

Current error message isn't very friendly anyway. There's room for improvement 🏠

uhyo commented 7 months ago

@MichalGorskiOnegini Hey, did this solve your issue?

matsumoto-takuto-z commented 7 months ago

@uhyo I also encountered the same problem and the solution you presented worked. thanks!