import-js / import-js/eslint-plugin-import
Allow import/order to accept a glob/regex
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
## Why
It should be possible to sort the imports based on their needs.
For example:
I want to have my meteor imports after my node imports but before the rest.
## Proposal
> .eslintrc.js
```js
module.exports = {
rules: {
'import/order': ['error', {
groups: [
'builtin',
'^meteor/.+$'
]
}]
}
}
```
Thoughts?
Contributor guide
Research direction
Start by examining the import/order rule and how its existing groups configuration determines import placement. Review the proposal and comment discussion for the intended glob or regex semantics; done means custom patterns can place meteor imports after node imports and before the remaining imports, with coverage for that ordering.
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
- 35/100