Sitelet https://github.com/import-js/eslint-plugin-import/pull/343
Skip to content

Fix prefer default in multiple named export case - #343

Merged
benmosher merged 2 commits into
import-js:masterfrom
scottnonnenberg:fix-prefer-default
May 19, 2016
Merged

benmosher merged 2 commits into
import-js:masterfrom
scottnonnenberg:fix-prefer-default

Conversation

@scottnonnenberg

Copy link
Copy Markdown
Contributor

Fixes #342. Instead of counting the number of ExportNamedDeclaration nodes, we count the number of properties in its child ObjectPattern.

A couple other style fixes.

@benmosher

Copy link
Copy Markdown
Member

It's close. Will provide feedback ASAP, next few days or so. 😄

@benmosher
benmosher merged commit b377fc6 into import-js:master May 19, 2016
benmosher added a commit that referenced this pull request May 19, 2016
silverwind pushed a commit to silverwind/eslint-plugin-import that referenced this pull request Mar 11, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

prefer-default-export doesn't understand destructoring

2 participants