import-js / import-js/eslint-plugin-import
Enhance parser to understand TS's `declare module`
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
I was asked to open this issue here, instead of in [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript/issues/448)
After upgrading from `eslint-import-resolver-typescript` version 3.8.3 to 4.3.4 and I am getting errors that there are pretty much no exports availaboe from [@uidotdev/usehooks](https://github.com/uidotdev/usehooks).
The breaking change seems to be with version 3.9.0, when there was a migration between resolvers.
Here is a repository that shows the issue: https://github.com/Brandon-Ritchie/eslint-import-reproduction
Contributor guide
Research direction
Start by running the linked eslint-import-reproduction repository against eslint-import-resolver-typescript 3.8.3 and 4.3.4, focusing on the change introduced in 3.9.0. Trace how the parser handles TypeScript's `declare module` and verify that @uidotdev/usehooks exports are recognized correctly after the fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100