-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
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:
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 🎉 🐛
Etzeo, yvele and sebastian-fredriksson-bernholtzTimoWilhelm, tomprats and rivajunior
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussionenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules
Type
Projects
Status
Complete