This repository has been archived by the owner on May 19, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for duplicate named exports in exported destructuring assignmen…
…ts (#144) * Check for duplicate named exports in exported destructuring assignments * Refactor duplicate error reporting * Remove unnecessary check
- Loading branch information
1 parent
7c2302a
commit 76e6927
Showing
31 changed files
with
2,298 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
test/fixtures/es2015/modules/duplicate-named-export-destructuring/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
export const { rhythm } = typography; | ||
export const { TypographyStyle } = typography; | ||
export const { foo } = bar; | ||
export const { foo: foo2 } = bar; | ||
export const { foo: { baz } } = bar; | ||
export const { foo: { baz: { qux } } } = bar; | ||
export const { foo: { baz: { qux2 } }, foo3 } = bar; | ||
export const [foo4] = bar; | ||
export const [[baz2]] = bar; | ||
export const [{ foo: [baz3] }, { foo2: [baz4] }] = bar; | ||
export const { foo: { baz: { qux3 } }, foo2: { baz2: [qux4]} } = bar; | ||
export const { foo: { baz: { qux5 } }, foo2: { baz2: [{qux6}]} } = bar; | ||
export const { Foo } = bar; |
Oops, something went wrong.