-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gqlconfig
37 lines (37 loc) · 1.12 KB
/
.gqlconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** Requires:
* playlfe/gql (nodejs)
* Facebook Watchman (windows binary)
* [Docs](https://github.com/Mayank1791989/gql#gqlconfig)
*
**/
{
schema: {
files: 'client/src/lib/types/schema.graphql',
validate: {
extends: "gql-rules-schema",
rules: {
// KnownFragmentNames: "off",
// NoUnusedFragments: "off",
// https://github.com/Mayank1791989/gql/tree/master/src/schema/validation/rules/gql-rules-schema
NoUnusedTypeDefinition: "off"
}
}
},
query: {
files: [
{
// match: { include: 'client/src/**/*.gql', ignore: 'client/src/lib/types/schema.graphql' },
match: 'client/src/**/*.gql',
parser: 'QueryParser',
validate: {
extends: "gql-rules-query",
rules: {
KnownFragmentNames: "off",
NoUnusedFragments: "off",
// NoUnusedTypeDefinition: "off"
}
}
},
]
}
}