From 14a235eabf3604c7fdbc4fd87668db1dc5fc4d2a Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 15 Dec 2022 12:02:51 +0800 Subject: [PATCH] refactor(schemas): remove eslint in generate script (#2669) --- packages/schemas/generate.sh | 1 - packages/schemas/package.json | 1 + packages/schemas/src/gen/schema.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schemas/generate.sh b/packages/schemas/generate.sh index f20e26984..14e35dbea 100755 --- a/packages/schemas/generate.sh +++ b/packages/schemas/generate.sh @@ -4,4 +4,3 @@ rm -rf lib/ pnpm exec tsc -p tsconfig.build.gen.json rm -rf src/db-entries node lib/index.js -pnpm exec eslint src/db-entries/** --fix diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 457f716bb..dc8d398ec 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -55,6 +55,7 @@ "rules": { "@typescript-eslint/ban-types": "off" }, + "ignorePatterns": ["src/db-entries/"], "overrides": [ { "files": [ diff --git a/packages/schemas/src/gen/schema.ts b/packages/schemas/src/gen/schema.ts index 3f3558d5f..73213cd66 100644 --- a/packages/schemas/src/gen/schema.ts +++ b/packages/schemas/src/gen/schema.ts @@ -51,7 +51,7 @@ export const generateSchema = ({ name, fields }: TableWithType) => { )},`; } ), - ' });', + '});', '', `const guard: Guard<${modelName}> = z.object({`,