mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 18:31:55 +03:00
5c673a8ffc
Co-authored-by: forehalo <forehalo@gmail.com> Co-authored-by: Himself65 <himself65@outlook.com>
32 lines
660 B
YAML
32 lines
660 B
YAML
hooks:
|
|
afterOneFileWrite:
|
|
- prettier --write
|
|
config:
|
|
strict: true
|
|
maybeValue: T | null
|
|
declarationKind: interface
|
|
avoidOptionals: true
|
|
preResolveTypes: true
|
|
onlyOperationTypes: true
|
|
namingConvention:
|
|
enumValues: keep
|
|
scalars:
|
|
DateTime: string
|
|
Date: string
|
|
Decimal: number
|
|
UUID: string
|
|
ID: string
|
|
JSON: any
|
|
overwrite: true
|
|
schema: ../../apps/server/src/schema.gql
|
|
documents: ./src/**/*.gql
|
|
generates:
|
|
./src/schema.ts:
|
|
plugins:
|
|
- typescript
|
|
- typescript-operations
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- ./export-gql-plugin.cjs:
|
|
output: ./src/graphql/index.ts
|