8000 Bug: `no-restricted-exports` fails on `export { default, ... } from ...` · Issue #15617 · eslint/eslint · GitHub
[go: up one dir, main page]

Skip to content
Bug: no-restricted-exports fails on export { default, ... } from ... #15617
@patcon

Description

@patcon

Environment

Node version: v14.18.1
npm version: v8.3.0
Local ESLint version: v8.9.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 20.6.0

What parser are you using?

Default (Espree)

What did you do?

Minimal reproduction repo here: https://github.com/patcon/eslint-bug-reproduction-default-export

What did you expect to happen?

Expected npm run lint to pass, since

export { default, function2 } from 'bar.js';

is just an alternative format, recommended in Mozilla web MDN docs :)

What actually happened?

Both forms of this default failed:

Screen Shot 2022-02-17 at 3 51 58 PM

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

Re-ticketed from airbnb/javascript#2500

Thanks a bunch! Open to pointers in the right direction, or just affirmation that this is a bug 🎉 🐛

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintruleRelates to ESLint's core rules

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0