import-js / import-js/eslint-plugin-import
import/no-unused-modules ignoreExports not working
Open
question
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
```
[
'error',
{
missingExports: true,
unusedExports: false,
src: [
'/my/project'
],
ignoreExports: [ '**/index.js', '**/build/**', '**/dist/**' ]
}
]
```
but `/my/project/src/index.js` reports `No exports found` from `import/no-unused-modules` even though it is in ignoreExports?
Contributor guide
Research direction
Start at the import/no-unused-modules rule and reproduce the configuration shown against /my/project/src/index.js. Trace how ignoreExports is matched, then verify that an ignored index.js no longer reports “No exports found” while the other configured checks still behave as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100