-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy path.gqlconfig
35 lines (35 loc) · 996 Bytes
/
.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
{
schema: {
files: 'tests/fixtures/test-schema.graphql'
},
query: {
files: [
// query gql files
{
match: 'tests/dummy/app/gql/**/*.graphql',
parser: 'QueryParser',
// required until fragment imports work: https://github.com/Mayank1791989/gql/issues/3
validate: {
extends: "gql-rules-query",
rules: {
KnownFragmentNames: "off",
NoUnusedFragments: "off"
}
}
},
// [Embedded queries] gql tag files
{
match: { include: 'tests/dummy/app/**/*.js' },
parser: [ 'EmbeddedQueryParser', { startTag: 'gql`', endTag: '`' } ],
// required until fragment imports work: https://github.com/Mayank1791989/gql/issues/3
validate: {
extends: "gql-rules-query",
rules: {
KnownFragmentNames: "off",
NoUnusedFragments: "off"
}
}
},
],
},
}