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

mark full import statement instead of path node

Open
#1,114 1 comment 1 reaction 0 assignees View on GitHub
semver-major
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

for things like no-unresolved, mark the full import when there is a problem with the path, since

- it looks bad right now in Sublime, at least (only highlights opening quote)
- semantically, if the path is not usable the whole import is botched anyway

Contributor guide

Open the contributing guide

Research direction

Start by tracing the no-unresolved rule and how it selects the reported AST node for path problems. Check the current editor highlighting behavior, especially in Sublime; done means the full import statement is marked rather than only the opening quote or path node.

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.