Skip to content

Commit

Permalink
fix(eslint-plugin-esm): fix incorrect report on `import type {} from …
Browse files Browse the repository at this point in the history
…"@foo/bar"`
  • Loading branch information
zanminkian committed Nov 27, 2024
1 parent 4c6fa59 commit 0c4462d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-singers-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-esm": patch
---

fix(eslint-plugin-esm): fix incorrect report on `import type {} from "@foo/bar"`
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const noPhantomDepImports = createRule({
? !(
isInDep ||
isInDev ||
`@types/${moduleName.slice(1).replace("/", "_")}` in devDep
`@types/${moduleName.slice(1).replace("/", "__")}` in devDep
)
: !(isInDep || isInDev || `@types/${moduleName}` in devDep);
} else {
Expand Down

0 comments on commit 0c4462d

Please sign in to comment.