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

Rule doesn't allow adding one line only between absolute path imports and relative path imports

Open
#2,157 0 comments 1 reaction 0 assignees View on GitHub
enhancement import/export ordering
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

It seems impossible to achieve it through configuration. Am I missing something? Is there any way to do this?

.eslintrc

```json
{
"overrides": [
{
"files": ["./**/**.{js,jsx,ts,tsx}"],
"rules": {
"import/order": [
"error",
{
"alphabetize": { "order": "asc", "caseInsensitive": true },
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object"
],
"newlines-between": "never",
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["builtin"]
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
]
}
}
]
}
```

Looking forward to replying. 🙏

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the import/order rule and the .eslintrc configuration shown in the issue, focusing on how absolute and relative imports are grouped. Determine whether configuration can express one blank line between them; if not, define the behavior and add coverage showing the expected separation.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.