Skip to content

Commit 191e559

Browse files
committed
test(#136): try to reproduce the issue
1 parent 757ffa9 commit 191e559

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"hermes-eslint": "^0.23.1",
117117
"jest": "^29.7.0",
118118
"klaw-sync": "^6.0.0",
119+
"markdown-it-anchor": "^9.1.0",
119120
"npm-run-all2": "^6.1.2",
120121
"prettier": "^3.2.5",
121122
"redux": "^5.0.1",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
2+
// Vite / Rollup might mangle exported functions' original name
3+
4+
function foo() {}
5+
6+
export { foo as default }

test/rules/no-named-as-default.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ ruleTester.run('no-named-as-default', rule, {
8080
}),
8181

8282
...SYNTAX_CASES,
83+
84+
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
85+
test({
86+
code: '/** #136 */ import exportDefaultStringAndNamed from "./export-default-as-named-decl"',
87+
}),
8388
],
8489

8590
invalid: [

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -5396,6 +5396,11 @@ map-obj@^4.0.0:
53965396
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a"
53975397
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==
53985398

5399+
markdown-it-anchor@^9.1.0:
5400+
version "9.1.0"
5401+
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-9.1.0.tgz#5780716c52baa8fbb3d88fad5294bfd0e64a22a3"
5402+
integrity sha512-a5WqArGkkLQZUEdC9cpkWvrdLJyS45r+28nE4jxiQynFLZ6VXdX4+hulCRzxmS+hi9+Dwfi5zTFIz3dY1YA6xQ==
5403+
53995404
markdown-table@^3.0.3:
54005405
version "3.0.3"
54015406
resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.3.tgz#e6331d30e493127e031dd385488b5bd326e4a6bd"

0 commit comments

Comments
 (0)