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

`no-unresolved` rule should not report for optionalDependencies

Open
#812 3 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Imported packages that are defined in `optionalDependencies` in package.json are optional and should not cause a violation.

Contributor guide

Open the contributing guide

Research direction

Start at the `no-unresolved` rule and locate its existing tests. Trace how dependencies from package.json are checked, then add coverage showing that imports listed in optionalDependencies do not produce violations; the rule’s tests should pass with the expected behavior.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.