blob: 161fd1c765e29034898d3cdc216db8925f5a1325 (
plain) (
tree)
|
|
schema: '../graphql/schema/*.graphql'
overwrite: true
documents: src/**/*.graphql
generates:
./src/fragmentTypes.js:
plugins:
- fragment-matcher
config:
module: es2015
./src/gqlTypes.ts:
plugins:
- typescript
./src/:
plugins:
- add: '/* eslint-disable @typescript-eslint/no-unused-vars */'
- typescript-operations
- typescript-react-apollo
preset: near-operation-file
presetConfig:
extension: .generated.tsx
baseTypesPath: gqlTypes.ts
config:
withComponent: false
withHOC: false
withHooks: true
hooks:
afterOneFileWrite:
- prettier --write
|