Skip to content

Commit f7d476c

Browse files
authored
fix bundle (#8)
1 parent 7606e9f commit f7d476c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/chubby-turtles-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-import-zod": patch
3+
---
4+
5+
Fix ESM bundle

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import preferZodNamespace from "./rules/prefer-zod-namespace";
22
import { TSESLint } from "@typescript-eslint/utils";
33

44
// Create the base plugin object
5-
const plugin = {
5+
const importZod = {
66
meta: {
77
name: "import-zod",
88
version: "1.0.0",
@@ -16,12 +16,12 @@ const plugin = {
1616
};
1717

1818
Object.assign(
19-
plugin.configs as NonNullable<TSESLint.Linter.Plugin["configs"]>,
19+
importZod.configs as NonNullable<TSESLint.Linter.Plugin["configs"]>,
2020
{
2121
recommended: [
2222
{
2323
plugins: {
24-
"import-zod": plugin,
24+
"import-zod": importZod,
2525
},
2626
rules: {
2727
"import-zod/prefer-zod-namespace": "error",
@@ -31,4 +31,4 @@ Object.assign(
3131
}
3232
);
3333

34-
export = plugin;
34+
export = importZod;

0 commit comments

Comments
 (0)