0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

refactor(schemas): remove eslint in generate script (#2669)

This commit is contained in:
Gao Sun 2022-12-15 12:02:51 +08:00 committed by GitHub
parent 3ca52420da
commit 14a235eabf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -4,4 +4,3 @@ rm -rf lib/
pnpm exec tsc -p tsconfig.build.gen.json pnpm exec tsc -p tsconfig.build.gen.json
rm -rf src/db-entries rm -rf src/db-entries
node lib/index.js node lib/index.js
pnpm exec eslint src/db-entries/** --fix

View file

@ -55,6 +55,7 @@
"rules": { "rules": {
"@typescript-eslint/ban-types": "off" "@typescript-eslint/ban-types": "off"
}, },
"ignorePatterns": ["src/db-entries/"],
"overrides": [ "overrides": [
{ {
"files": [ "files": [

View file

@ -51,7 +51,7 @@ export const generateSchema = ({ name, fields }: TableWithType) => {
)},`; )},`;
} }
), ),
' });', '});',
'', '',
`const guard: Guard<${modelName}> = z.object({`, `const guard: Guard<${modelName}> = z.object({`,