import-js / import-js/eslint-plugin-import

no-unused-modules "missingExports" returns false positives

Open
#2,102 7 comments 1 reaction 0 assignees View on GitHub
`exports` support bug help wanted
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**I'd expect both of these cases to count as exports:**

`module.exports = {}` // Should probably not trigger

`export * from './someFile'` // Should almost definitely not trigger

Contributor guide

Open the contributing guide

Research direction

Start with the no-unused-modules rule and its missingExports behavior, then reproduce the two examples from the issue: an empty module.exports object and an export-all declaration. Done means neither case produces a false-positive missing-exports report.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.