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

Support URL imports

Open
#933 4 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

With [ES modules having landed in Chrome and Safari](https://jakearchibald.com/2017/es-modules-in-browsers/) a few months ago, it would be great to support imports from URLs.

![image](https://user-images.githubusercontent.com/33569/30793186-0ab2d022-a175-11e7-9bf1-e2334e7c356c.png)

Right now, a statement like the above will generate three errors:
```text
'https:' should be listed in the project's dependencies.
Unable to resolve path to module ...
Unexpected use of file extension "js" for ...
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the URL import example and tracing the three diagnostics listed in the issue. Identify the rules or resolver paths responsible, then verify that URL imports no longer produce those errors while ordinary dependency and file-extension checks still behave as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.