Skip to content

[import/default] False positive when exporting a default value using destructuring #545

Closed
@skyrpex

Description

Exporting a default value using destructuring seems to cause a false positive. Example:

store.js

// Export a default value
export { mapGetters as default } from 'vuex';
// This is the equivalent that correctly works
// import { mapGetters } from 'vuex';
// export default mapGetters;

// Other exports...
export const USER = 'user';

file.js

import mapGetters, { USER } from './store.js';
// ESLint says: (import/default) No default export found in module.

I'm using transform-export-extensions.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions