2020-01-21 23:01:51 +03:00
|
|
|
schema: '../graphql/schema/*.graphql'
|
|
|
|
overwrite: true
|
2020-02-04 01:08:26 +03:00
|
|
|
documents: src/**/*.graphql
|
2020-01-21 23:01:51 +03:00
|
|
|
generates:
|
|
|
|
./src/fragmentTypes.js:
|
|
|
|
plugins:
|
|
|
|
- fragment-matcher
|
|
|
|
config:
|
|
|
|
module: es2015
|
2020-02-04 01:08:26 +03:00
|
|
|
./src/gqlTypes.ts:
|
|
|
|
plugins:
|
|
|
|
- typescript
|
2020-02-12 00:11:08 +03:00
|
|
|
./src/schema.json:
|
|
|
|
plugins:
|
|
|
|
- introspection
|
2020-02-04 01:08:26 +03:00
|
|
|
./src/:
|
|
|
|
plugins:
|
2020-02-12 00:11:08 +03:00
|
|
|
- add: '/* eslint-disable @typescript-eslint/no-unused-vars, import/order */'
|
2020-02-04 01:08:26 +03:00
|
|
|
- typescript-operations
|
|
|
|
- typescript-react-apollo
|
|
|
|
preset: near-operation-file
|
|
|
|
presetConfig:
|
|
|
|
extension: .generated.tsx
|
|
|
|
baseTypesPath: gqlTypes.ts
|
|
|
|
config:
|
|
|
|
withComponent: false
|
|
|
|
withHOC: false
|
|
|
|
withHooks: true
|
|
|
|
|
|
|
|
hooks:
|
2020-02-12 00:11:08 +03:00
|
|
|
afterAllFileWrite:
|
|
|
|
- prettier --write
|