Skip to content

Commit 1a67453

Browse files
ljharbtomprats
andcommitted
[Tests] export: add tests for a name collision with export * from
Closes #1704. Co-authored-by: Tom Prats <[email protected]>
1 parent 5fe14e3 commit 1a67453

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
1111
- [`extensions`]/importType: Fix @/abc being treated as scoped module ([#1854], thanks [@3nuc])
1212
- allow using rest operator in named export ([#1878], thanks [@foray1010])
1313

14+
### Changed
15+
- [`export`]: add tests for a name collision with `export * from` ([#1704], thanks @tomprats)
16+
1417
## [2.22.0] - 2020-06-26
1518
### Added
1619
- [`no-unused-modules`]: consider exported TypeScript interfaces, types and enums ([#1819], thanks [@nicolashenry])
@@ -758,6 +761,7 @@ for info on changes for earlier releases.
758761
[#1724]: https://github.com/benmosher/eslint-plugin-import/pull/1724
759762
[#1722]: https://github.com/benmosher/eslint-plugin-import/issues/1722
760763
[#1719]: https://github.com/benmosher/eslint-plugin-import/pull/1719
764+
[#1704]: https://github.com/benmosher/eslint-plugin-import/issues/1704
761765
[#1702]: https://github.com/benmosher/eslint-plugin-import/issues/1702
762766
[#1691]: https://github.com/benmosher/eslint-plugin-import/pull/1691
763767
[#1690]: https://github.com/benmosher/eslint-plugin-import/pull/1690
@@ -1266,3 +1270,4 @@ for info on changes for earlier releases.
12661270
[@beatrizrezener]: https://github.com/beatrizrezener
12671271
[@3nuc]: https://github.com/3nuc
12681272
[@foray1010]: https://github.com/foray1010
1273+
[@tomprats]: https://github.com/tomprats

tests/src/rules/export.js

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ ruleTester.run('export', rule, {
3535
export { A, B };
3636
`,
3737
}),
38+
test({
39+
code: `
40+
export * as A from './named-export-collision/a';
41+
export * as B from './named-export-collision/b';
42+
`,
43+
parserOptions: {
44+
ecmaVersion: 2020,
45+
},
46+
}),
3847
],
3948

4049
invalid: [

0 commit comments

Comments
 (0)