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

Add `allowReexport` option to `no-default-export`

Open
#3,209 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Currently, `no-default-export` reports `export {default} from "foo"`. Re-export is usuful in some cases. Supporting `allowReexport` option to not report it is reasonable.

Contributor guide

Open the contributing guide

Research direction

Locate the implementation and tests for the no-default-export rule, then read how its options are defined and how re-exports are covered. Run the existing rule tests first; done means an allowReexport option prevents reporting export {default} from "foo" while preserving current reports for other default exports.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.