File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " eslint-plugin-import-zod " : patch
3+ ---
4+
5+ Fix ESM bundle
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import preferZodNamespace from "./rules/prefer-zod-namespace";
22import { 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
1818Object . 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 ;
You can’t perform that action at this time.
0 commit comments