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

feature for import/order: move annotations with import statements

Open
#2,899 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Add feature to move import statements with related annotation blocks.

Current behaviour:

before:
```
// annotation for foo import
import foo from 'foo';
import bar from 'bar';
```

after:
```
// annotation for foo import
import bar from 'bar';
import foo from 'foo';
```

expected:
```
import bar from 'bar';
// annotation for foo import
import foo from 'foo';
```

Contributor guide

Open the contributing guide

Research direction

The issue names the import/order rule but no source file or test. Start by locating that rule and use the before, after, and expected examples to understand the current ordering behavior; done means related annotation blocks move with their import statements when imports are reordered.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
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.