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

rule to detect non-es6module import

Open
#971 4 comments 0 reactions 0 assignees View on GitHub
rule proposal
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

As the es6 is widely used and some libraries are already distributed as es6 (I hope there will be more of them in future) it will be nice to have rule to check if the imported file contains es6 module or not.

I see the biggest benefits of es modules in predictability and better possibilities during static analyses. It can be used for better code optimisation - tree shaking, death code elimination, ...

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by reviewing the plugin's existing import rules and how they inspect imported files, then clarify the expected ES6-module detection behavior and add coverage; done means the rule reliably identifies whether an imported file contains an ES6 module.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.