airbnb / airbnb/javascript

[no-restricted-exports] Fails on `export { default } from ...`

Open
#2,500 7 comments 28 reactions 0 assignees View on GitHub
semver-breaking: guide change
Dominant language
JavaScript
Stars
148k
Forks
26.6k
PR merge metrics
No merged PRs in 30d

Description

As the title states. Fails when re-exporting the default from another module.

```ts
export { default } from 'another-module';
```

This feels like it _should_ pass, since this is not a named export. https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js#L67

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked eslint-config-airbnb-base/rules/es6.js configuration and reproduce the no-restricted-exports behavior using the TypeScript-style re-export example in the issue. Confirm how the rule treats `default` re-exports, then verify that the example is accepted without changing the rule's handling of named exports.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.