Skip to content

Commit

Permalink
test(un-ts#136): try to reproduce the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 29, 2024
1 parent ceb8e65 commit 7bbc9cf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
"eslint9": "npm:eslint@^9.8.0",
"hermes-eslint": "^0.23.1",
"jest": "^29.7.0",
"markdown-it-anchor": "^9.1.0",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"redux": "^5.0.1",
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/export-default-as-named-decl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
// Vite / Rollup might mangle exported functions' original name

function foo() {}

export { foo as default }
5 changes: 5 additions & 0 deletions test/rules/no-named-as-default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ ruleTester.run('no-named-as-default', rule, {
}),

...SYNTAX_CASES,

// https://github.com/un-ts/eslint-plugin-import-x/issues/136
test({
code: '/** #136 */ import exportDefaultStringAndNamed from "./export-default-as-named-decl"',
}),
],

invalid: [
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5389,6 +5389,11 @@ map-obj@^4.0.0:
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a"
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==

markdown-it-anchor@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-9.1.0.tgz#5780716c52baa8fbb3d88fad5294bfd0e64a22a3"
integrity sha512-a5WqArGkkLQZUEdC9cpkWvrdLJyS45r+28nE4jxiQynFLZ6VXdX4+hulCRzxmS+hi9+Dwfi5zTFIz3dY1YA6xQ==

markdown-table@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-3.0.3.tgz#e6331d30e493127e031dd385488b5bd326e4a6bd"
Expand Down

0 comments on commit 7bbc9cf

Please sign in to comment.