import-js / import-js/eslint-plugin-import
`import/consistent-type-specifier-style` for exports
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Like `import/consistent-type-specifier-style`, but for exports.
Example:
❌ Invalid with `["error", "prefer-top-level"]`
```ts
export {Foo, type Bar};
```
✅ Valid with `["error", "prefer-top-level"]`
```ts
export type {Bar};
export {Foo};
```
Contributor guide
Research direction
Start by locating the existing `import/consistent-type-specifier-style` rule and its tests and documentation, then use them as the entry point for the export variant. Check how the rule handles the `prefer-top-level` option and add corresponding coverage for the invalid and valid export examples. Done means the new rule and its documented behavior are covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100