import-js / import-js/eslint-plugin-import
(group-exports) Option to never put the export next to the declaration
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to see an option for always having named exports be specified separately to their definition. e.g.
Fail
export const foo = 'bar';
Pass
const foo = 'bar';
export { foo };
I'm basically trying to mitigate the workflow of moving the export keyword to the bottom of the file if another named export is added.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the group-exports rule and its existing tests, then compare the reported inline and separate export examples with the rule's current behavior. Define the option's expected handling for named exports and update coverage so the requested separate-export form passes while the inline form fails.
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
- 35/100