We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a127b8 commit 150e9bcCopy full SHA for 150e9bc
1 file changed
eslint.config.js
@@ -11,6 +11,7 @@ import { builtinModules } from "node:module";
11
const cwd = dirname(fileURLToPath(import.meta.url));
12
const ezDir = join(cwd, "express-zod-api");
13
const migrationDir = join(cwd, "migration");
14
+const pluginDir = join(cwd, "zod-plugin");
15
16
const importConcerns = [
17
{
@@ -204,6 +205,18 @@ export default tsPlugin.config(
204
205
],
206
},
207
208
+ {
209
+ name: "source/plugin",
210
+ files: ["zod-plugin/src/*.ts"],
211
+ rules: {
212
+ "allowed/dependencies": ["error", { packageDir: pluginDir }],
213
+ "no-restricted-syntax": [
214
+ "warn",
215
+ ...importConcerns,
216
+ ...performanceConcerns,
217
+ ],
218
+ },
219
220
221
name: "source/migration",
222
files: ["migration/index.ts"],
0 commit comments