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:
parent
3ca52420da
commit
14a235eabf
3 changed files with 2 additions and 2 deletions
|
@ -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
|
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/ban-types": "off"
|
"@typescript-eslint/ban-types": "off"
|
||||||
},
|
},
|
||||||
|
"ignorePatterns": ["src/db-entries/"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -51,7 +51,7 @@ export const generateSchema = ({ name, fields }: TableWithType) => {
|
||||||
)},`;
|
)},`;
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
' });',
|
'});',
|
||||||
'',
|
'',
|
||||||
`const guard: Guard<${modelName}> = z.object({`,
|
`const guard: Guard<${modelName}> = z.object({`,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue