@graphql-eslint/eslint-plugin 4.0.0-alpha.15 → 4.0.0-alpha.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/cjs/cache.js +1 -2
  2. package/cjs/configs/index.d.cts +427 -10
  3. package/cjs/configs/index.js +1 -2
  4. package/cjs/configs/operations-all.d.cts +8 -8
  5. package/cjs/configs/operations-all.js +30 -33
  6. package/cjs/configs/operations-recommended.d.cts +35 -35
  7. package/cjs/configs/operations-recommended.js +56 -59
  8. package/cjs/configs/schema-all.d.cts +12 -12
  9. package/cjs/configs/schema-all.js +26 -29
  10. package/cjs/configs/schema-recommended.d.cts +23 -23
  11. package/cjs/configs/schema-recommended.js +70 -73
  12. package/cjs/configs/schema-relay.d.cts +5 -5
  13. package/cjs/configs/schema-relay.js +14 -17
  14. package/cjs/documents.js +1 -2
  15. package/cjs/estree-converter/converter.js +1 -2
  16. package/cjs/estree-converter/utils.js +1 -2
  17. package/cjs/graphql-config.js +1 -2
  18. package/cjs/index.d.cts +433 -15
  19. package/cjs/index.js +1 -2
  20. package/cjs/meta.js +1 -2
  21. package/cjs/parser.js +1 -2
  22. package/cjs/processor.js +1 -2
  23. package/cjs/rules/alphabetize/index.js +1 -2
  24. package/cjs/rules/description-style/index.js +1 -2
  25. package/cjs/rules/graphql-js-validation.js +1 -2
  26. package/cjs/rules/index.d.cts +4 -4
  27. package/cjs/rules/index.js +1 -2
  28. package/cjs/rules/input-name/index.js +1 -2
  29. package/cjs/rules/lone-executable-definition/index.js +1 -2
  30. package/cjs/rules/match-document-filename/index.js +1 -2
  31. package/cjs/rules/naming-convention/index.js +1 -2
  32. package/cjs/rules/no-anonymous-operations/index.js +1 -2
  33. package/cjs/rules/no-deprecated/index.js +1 -2
  34. package/cjs/rules/no-duplicate-fields/index.js +1 -2
  35. package/cjs/rules/no-hashtag-description/index.js +1 -2
  36. package/cjs/rules/no-one-place-fragments/index.js +1 -2
  37. package/cjs/rules/no-root-type/index.js +1 -2
  38. package/cjs/rules/no-scalar-result-type-on-mutation/index.js +1 -2
  39. package/cjs/rules/no-typename-prefix/index.js +1 -2
  40. package/cjs/rules/no-unreachable-types/index.js +1 -2
  41. package/cjs/rules/no-unused-fields/index.js +1 -2
  42. package/cjs/rules/relay-arguments/index.js +1 -2
  43. package/cjs/rules/relay-connection-types/index.js +1 -2
  44. package/cjs/rules/relay-edge-types/index.js +1 -2
  45. package/cjs/rules/relay-page-info/index.js +1 -2
  46. package/cjs/rules/require-deprecation-date/index.js +1 -2
  47. package/cjs/rules/require-deprecation-reason/index.js +1 -2
  48. package/cjs/rules/require-description/index.js +1 -2
  49. package/cjs/rules/require-field-of-type-query-in-mutation-result/index.js +1 -2
  50. package/cjs/rules/require-import-fragment/index.js +1 -2
  51. package/cjs/rules/require-nullable-fields-with-oneof/index.js +1 -2
  52. package/cjs/rules/require-nullable-result-in-root/index.js +1 -2
  53. package/cjs/rules/require-selections/index.js +1 -2
  54. package/cjs/rules/require-type-pattern-with-oneof/index.js +1 -2
  55. package/cjs/rules/selection-set-depth/index.js +1 -2
  56. package/cjs/rules/strict-id-in-types/index.js +1 -2
  57. package/cjs/rules/unique-enum-value-names/index.js +1 -2
  58. package/cjs/rules/unique-fragment-name/index.js +1 -2
  59. package/cjs/rules/unique-operation-name/index.js +1 -2
  60. package/cjs/schema.js +1 -2
  61. package/cjs/siblings.js +1 -2
  62. package/cjs/utils.js +1 -2
  63. package/esm/cache.js +0 -1
  64. package/esm/configs/index.d.ts +427 -10
  65. package/esm/configs/index.js +0 -1
  66. package/esm/configs/operations-all.d.ts +7 -7
  67. package/esm/configs/operations-all.js +28 -33
  68. package/esm/configs/operations-recommended.d.ts +34 -34
  69. package/esm/configs/operations-recommended.js +54 -59
  70. package/esm/configs/schema-all.d.ts +11 -11
  71. package/esm/configs/schema-all.js +24 -29
  72. package/esm/configs/schema-recommended.d.ts +22 -22
  73. package/esm/configs/schema-recommended.js +68 -73
  74. package/esm/configs/schema-relay.d.ts +4 -4
  75. package/esm/configs/schema-relay.js +12 -17
  76. package/esm/documents.js +0 -1
  77. package/esm/estree-converter/converter.js +0 -1
  78. package/esm/estree-converter/utils.js +0 -1
  79. package/esm/graphql-config.js +0 -1
  80. package/esm/index.d.ts +433 -15
  81. package/esm/index.js +0 -1
  82. package/esm/meta.js +1 -2
  83. package/esm/parser.js +0 -1
  84. package/esm/processor.js +0 -1
  85. package/esm/rules/alphabetize/index.js +0 -1
  86. package/esm/rules/description-style/index.js +0 -1
  87. package/esm/rules/graphql-js-validation.js +0 -1
  88. package/esm/rules/index.d.ts +4 -4
  89. package/esm/rules/index.js +0 -1
  90. package/esm/rules/input-name/index.js +0 -1
  91. package/esm/rules/lone-executable-definition/index.js +0 -1
  92. package/esm/rules/match-document-filename/index.js +0 -1
  93. package/esm/rules/naming-convention/index.js +0 -1
  94. package/esm/rules/no-anonymous-operations/index.js +0 -1
  95. package/esm/rules/no-deprecated/index.js +0 -1
  96. package/esm/rules/no-duplicate-fields/index.js +0 -1
  97. package/esm/rules/no-hashtag-description/index.js +0 -1
  98. package/esm/rules/no-one-place-fragments/index.js +0 -1
  99. package/esm/rules/no-root-type/index.js +0 -1
  100. package/esm/rules/no-scalar-result-type-on-mutation/index.js +0 -1
  101. package/esm/rules/no-typename-prefix/index.js +0 -1
  102. package/esm/rules/no-unreachable-types/index.js +0 -1
  103. package/esm/rules/no-unused-fields/index.js +0 -1
  104. package/esm/rules/relay-arguments/index.js +0 -1
  105. package/esm/rules/relay-connection-types/index.js +0 -1
  106. package/esm/rules/relay-edge-types/index.js +0 -1
  107. package/esm/rules/relay-page-info/index.js +0 -1
  108. package/esm/rules/require-deprecation-date/index.js +0 -1
  109. package/esm/rules/require-deprecation-reason/index.js +0 -1
  110. package/esm/rules/require-description/index.js +0 -1
  111. package/esm/rules/require-field-of-type-query-in-mutation-result/index.js +0 -1
  112. package/esm/rules/require-import-fragment/index.js +0 -1
  113. package/esm/rules/require-nullable-fields-with-oneof/index.js +0 -1
  114. package/esm/rules/require-nullable-result-in-root/index.js +0 -1
  115. package/esm/rules/require-selections/index.js +0 -1
  116. package/esm/rules/require-type-pattern-with-oneof/index.js +0 -1
  117. package/esm/rules/selection-set-depth/index.js +0 -1
  118. package/esm/rules/strict-id-in-types/index.js +0 -1
  119. package/esm/rules/unique-enum-value-names/index.js +0 -1
  120. package/esm/rules/unique-fragment-name/index.js +0 -1
  121. package/esm/rules/unique-operation-name/index.js +0 -1
  122. package/esm/schema.js +0 -1
  123. package/esm/siblings.js +0 -1
  124. package/esm/utils.js +0 -1
  125. package/index.browser.js +203 -251
  126. package/package.json +1 -1
  127. package/cjs/chunk-UIAXBAMD.js +0 -8
  128. package/esm/chunk-UIAXBAMD.js +0 -8
@@ -1,23 +1,440 @@
1
1
  declare const configs: {
2
- 'schema-recommended': any;
3
- 'schema-all': any;
4
- 'schema-relay': any;
5
- 'operations-recommended': any;
6
- 'operations-all': any;
2
+ 'schema-recommended': {
3
+ parser: string;
4
+ plugins: string[];
5
+ rules: {
6
+ '@graphql-eslint/description-style': "error";
7
+ '@graphql-eslint/known-argument-names': "error";
8
+ '@graphql-eslint/known-directives': "error";
9
+ '@graphql-eslint/known-type-names': "error";
10
+ '@graphql-eslint/lone-schema-definition': "error";
11
+ '@graphql-eslint/naming-convention': ["error", {
12
+ types: string;
13
+ FieldDefinition: string;
14
+ InputValueDefinition: string;
15
+ Argument: string;
16
+ DirectiveDefinition: string;
17
+ EnumValueDefinition: string;
18
+ 'FieldDefinition[parent.name.value=Query]': {
19
+ forbiddenPrefixes: string[];
20
+ forbiddenSuffixes: string[];
21
+ };
22
+ 'FieldDefinition[parent.name.value=Mutation]': {
23
+ forbiddenPrefixes: string[];
24
+ forbiddenSuffixes: string[];
25
+ };
26
+ 'FieldDefinition[parent.name.value=Subscription]': {
27
+ forbiddenPrefixes: string[];
28
+ forbiddenSuffixes: string[];
29
+ };
30
+ 'EnumTypeDefinition,EnumTypeExtension': {
31
+ forbiddenPrefixes: string[];
32
+ forbiddenSuffixes: string[];
33
+ };
34
+ 'InterfaceTypeDefinition,InterfaceTypeExtension': {
35
+ forbiddenPrefixes: string[];
36
+ forbiddenSuffixes: string[];
37
+ };
38
+ 'UnionTypeDefinition,UnionTypeExtension': {
39
+ forbiddenPrefixes: string[];
40
+ forbiddenSuffixes: string[];
41
+ };
42
+ 'ObjectTypeDefinition,ObjectTypeExtension': {
43
+ forbiddenPrefixes: string[];
44
+ forbiddenSuffixes: string[];
45
+ };
46
+ }];
47
+ '@graphql-eslint/no-hashtag-description': "error";
48
+ '@graphql-eslint/no-typename-prefix': "error";
49
+ '@graphql-eslint/no-unreachable-types': "error";
50
+ '@graphql-eslint/possible-type-extension': "error";
51
+ '@graphql-eslint/provided-required-arguments': "error";
52
+ '@graphql-eslint/require-deprecation-reason': "error";
53
+ '@graphql-eslint/require-description': ["error", {
54
+ types: boolean;
55
+ DirectiveDefinition: boolean;
56
+ rootField: boolean;
57
+ }];
58
+ '@graphql-eslint/strict-id-in-types': "error";
59
+ '@graphql-eslint/unique-directive-names': "error";
60
+ '@graphql-eslint/unique-directive-names-per-location': "error";
61
+ '@graphql-eslint/unique-enum-value-names': "error";
62
+ '@graphql-eslint/unique-field-definition-names': "error";
63
+ '@graphql-eslint/unique-operation-types': "error";
64
+ '@graphql-eslint/unique-type-names': "error";
65
+ };
66
+ };
67
+ 'schema-all': {
68
+ extends: string;
69
+ rules: {
70
+ '@graphql-eslint/alphabetize': ["error", {
71
+ definitions: boolean;
72
+ fields: string[];
73
+ values: boolean;
74
+ arguments: string[];
75
+ groups: string[];
76
+ }];
77
+ '@graphql-eslint/input-name': "error";
78
+ '@graphql-eslint/no-root-type': ["error", {
79
+ disallow: string[];
80
+ }];
81
+ '@graphql-eslint/no-scalar-result-type-on-mutation': "error";
82
+ '@graphql-eslint/require-deprecation-date': "error";
83
+ '@graphql-eslint/require-field-of-type-query-in-mutation-result': "error";
84
+ '@graphql-eslint/require-nullable-fields-with-oneof': "error";
85
+ '@graphql-eslint/require-nullable-result-in-root': "error";
86
+ '@graphql-eslint/require-type-pattern-with-oneof': "error";
87
+ };
88
+ };
89
+ 'schema-relay': {
90
+ parser: string;
91
+ plugins: string[];
92
+ rules: {
93
+ '@graphql-eslint/relay-arguments': "error";
94
+ '@graphql-eslint/relay-connection-types': "error";
95
+ '@graphql-eslint/relay-edge-types': "error";
96
+ '@graphql-eslint/relay-page-info': "error";
97
+ };
98
+ };
99
+ 'operations-recommended': {
100
+ parser: string;
101
+ plugins: string[];
102
+ rules: {
103
+ '@graphql-eslint/executable-definitions': "error";
104
+ '@graphql-eslint/fields-on-correct-type': "error";
105
+ '@graphql-eslint/fragments-on-composite-type': "error";
106
+ '@graphql-eslint/known-argument-names': "error";
107
+ '@graphql-eslint/known-directives': "error";
108
+ '@graphql-eslint/known-fragment-names': "error";
109
+ '@graphql-eslint/known-type-names': "error";
110
+ '@graphql-eslint/lone-anonymous-operation': "error";
111
+ '@graphql-eslint/naming-convention': ["error", {
112
+ VariableDefinition: string;
113
+ OperationDefinition: {
114
+ style: string;
115
+ forbiddenPrefixes: string[];
116
+ forbiddenSuffixes: string[];
117
+ };
118
+ FragmentDefinition: {
119
+ style: string;
120
+ forbiddenPrefixes: string[];
121
+ forbiddenSuffixes: string[];
122
+ };
123
+ }];
124
+ '@graphql-eslint/no-anonymous-operations': "error";
125
+ '@graphql-eslint/no-deprecated': "error";
126
+ '@graphql-eslint/no-duplicate-fields': "error";
127
+ '@graphql-eslint/no-fragment-cycles': "error";
128
+ '@graphql-eslint/no-undefined-variables': "error";
129
+ '@graphql-eslint/no-unused-fragments': "error";
130
+ '@graphql-eslint/no-unused-variables': "error";
131
+ '@graphql-eslint/one-field-subscriptions': "error";
132
+ '@graphql-eslint/overlapping-fields-can-be-merged': "error";
133
+ '@graphql-eslint/possible-fragment-spread': "error";
134
+ '@graphql-eslint/provided-required-arguments': "error";
135
+ '@graphql-eslint/require-selections': "error";
136
+ '@graphql-eslint/scalar-leafs': "error";
137
+ '@graphql-eslint/selection-set-depth': ["error", {
138
+ maxDepth: number;
139
+ }];
140
+ '@graphql-eslint/unique-argument-names': "error";
141
+ '@graphql-eslint/unique-directive-names-per-location': "error";
142
+ '@graphql-eslint/unique-fragment-name': "error";
143
+ '@graphql-eslint/unique-input-field-names': "error";
144
+ '@graphql-eslint/unique-operation-name': "error";
145
+ '@graphql-eslint/unique-variable-names': "error";
146
+ '@graphql-eslint/value-literals-of-correct-type': "error";
147
+ '@graphql-eslint/variables-are-input-types': "error";
148
+ '@graphql-eslint/variables-in-allowed-position': "error";
149
+ };
150
+ };
151
+ 'operations-all': {
152
+ extends: string;
153
+ rules: {
154
+ '@graphql-eslint/alphabetize': ["error", {
155
+ definitions: boolean;
156
+ selections: string[];
157
+ variables: boolean;
158
+ arguments: string[];
159
+ groups: string[];
160
+ }];
161
+ '@graphql-eslint/lone-executable-definition': "error";
162
+ '@graphql-eslint/match-document-filename': ["error", {
163
+ query: string;
164
+ mutation: string;
165
+ subscription: string;
166
+ fragment: string;
167
+ }];
168
+ '@graphql-eslint/no-one-place-fragments': "error";
169
+ '@graphql-eslint/require-import-fragment': "error";
170
+ };
171
+ };
7
172
  'flat/schema-recommended': {
8
- rules: any;
173
+ rules: {
174
+ '@graphql-eslint/description-style': "error";
175
+ '@graphql-eslint/known-argument-names': "error";
176
+ '@graphql-eslint/known-directives': "error";
177
+ '@graphql-eslint/known-type-names': "error";
178
+ '@graphql-eslint/lone-schema-definition': "error";
179
+ '@graphql-eslint/naming-convention': ["error", {
180
+ types: string;
181
+ FieldDefinition: string;
182
+ InputValueDefinition: string;
183
+ Argument: string;
184
+ DirectiveDefinition: string;
185
+ EnumValueDefinition: string;
186
+ 'FieldDefinition[parent.name.value=Query]': {
187
+ forbiddenPrefixes: string[];
188
+ forbiddenSuffixes: string[];
189
+ };
190
+ 'FieldDefinition[parent.name.value=Mutation]': {
191
+ forbiddenPrefixes: string[];
192
+ forbiddenSuffixes: string[];
193
+ };
194
+ 'FieldDefinition[parent.name.value=Subscription]': {
195
+ forbiddenPrefixes: string[];
196
+ forbiddenSuffixes: string[];
197
+ };
198
+ 'EnumTypeDefinition,EnumTypeExtension': {
199
+ forbiddenPrefixes: string[];
200
+ forbiddenSuffixes: string[];
201
+ };
202
+ 'InterfaceTypeDefinition,InterfaceTypeExtension': {
203
+ forbiddenPrefixes: string[];
204
+ forbiddenSuffixes: string[];
205
+ };
206
+ 'UnionTypeDefinition,UnionTypeExtension': {
207
+ forbiddenPrefixes: string[];
208
+ forbiddenSuffixes: string[];
209
+ };
210
+ 'ObjectTypeDefinition,ObjectTypeExtension': {
211
+ forbiddenPrefixes: string[];
212
+ forbiddenSuffixes: string[];
213
+ };
214
+ }];
215
+ '@graphql-eslint/no-hashtag-description': "error";
216
+ '@graphql-eslint/no-typename-prefix': "error";
217
+ '@graphql-eslint/no-unreachable-types': "error";
218
+ '@graphql-eslint/possible-type-extension': "error";
219
+ '@graphql-eslint/provided-required-arguments': "error";
220
+ '@graphql-eslint/require-deprecation-reason': "error";
221
+ '@graphql-eslint/require-description': ["error", {
222
+ types: boolean;
223
+ DirectiveDefinition: boolean;
224
+ rootField: boolean;
225
+ }];
226
+ '@graphql-eslint/strict-id-in-types': "error";
227
+ '@graphql-eslint/unique-directive-names': "error";
228
+ '@graphql-eslint/unique-directive-names-per-location': "error";
229
+ '@graphql-eslint/unique-enum-value-names': "error";
230
+ '@graphql-eslint/unique-field-definition-names': "error";
231
+ '@graphql-eslint/unique-operation-types': "error";
232
+ '@graphql-eslint/unique-type-names': "error";
233
+ };
9
234
  };
10
235
  'flat/schema-all': {
11
- rules: any;
236
+ rules: {
237
+ '@graphql-eslint/alphabetize': ["error", {
238
+ definitions: boolean;
239
+ fields: string[];
240
+ values: boolean;
241
+ arguments: string[];
242
+ groups: string[];
243
+ }];
244
+ '@graphql-eslint/input-name': "error";
245
+ '@graphql-eslint/no-root-type': ["error", {
246
+ disallow: string[];
247
+ }];
248
+ '@graphql-eslint/no-scalar-result-type-on-mutation': "error";
249
+ '@graphql-eslint/require-deprecation-date': "error";
250
+ '@graphql-eslint/require-field-of-type-query-in-mutation-result': "error";
251
+ '@graphql-eslint/require-nullable-fields-with-oneof': "error";
252
+ '@graphql-eslint/require-nullable-result-in-root': "error";
253
+ '@graphql-eslint/require-type-pattern-with-oneof': "error";
254
+ '@graphql-eslint/description-style': "error";
255
+ '@graphql-eslint/known-argument-names': "error";
256
+ '@graphql-eslint/known-directives': "error";
257
+ '@graphql-eslint/known-type-names': "error";
258
+ '@graphql-eslint/lone-schema-definition': "error";
259
+ '@graphql-eslint/naming-convention': ["error", {
260
+ types: string;
261
+ FieldDefinition: string;
262
+ InputValueDefinition: string;
263
+ Argument: string;
264
+ DirectiveDefinition: string;
265
+ EnumValueDefinition: string;
266
+ 'FieldDefinition[parent.name.value=Query]': {
267
+ forbiddenPrefixes: string[];
268
+ forbiddenSuffixes: string[];
269
+ };
270
+ 'FieldDefinition[parent.name.value=Mutation]': {
271
+ forbiddenPrefixes: string[];
272
+ forbiddenSuffixes: string[];
273
+ };
274
+ 'FieldDefinition[parent.name.value=Subscription]': {
275
+ forbiddenPrefixes: string[];
276
+ forbiddenSuffixes: string[];
277
+ };
278
+ 'EnumTypeDefinition,EnumTypeExtension': {
279
+ forbiddenPrefixes: string[];
280
+ forbiddenSuffixes: string[];
281
+ };
282
+ 'InterfaceTypeDefinition,InterfaceTypeExtension': {
283
+ forbiddenPrefixes: string[];
284
+ forbiddenSuffixes: string[];
285
+ };
286
+ 'UnionTypeDefinition,UnionTypeExtension': {
287
+ forbiddenPrefixes: string[];
288
+ forbiddenSuffixes: string[];
289
+ };
290
+ 'ObjectTypeDefinition,ObjectTypeExtension': {
291
+ forbiddenPrefixes: string[];
292
+ forbiddenSuffixes: string[];
293
+ };
294
+ }];
295
+ '@graphql-eslint/no-hashtag-description': "error";
296
+ '@graphql-eslint/no-typename-prefix': "error";
297
+ '@graphql-eslint/no-unreachable-types': "error";
298
+ '@graphql-eslint/possible-type-extension': "error";
299
+ '@graphql-eslint/provided-required-arguments': "error";
300
+ '@graphql-eslint/require-deprecation-reason': "error";
301
+ '@graphql-eslint/require-description': ["error", {
302
+ types: boolean;
303
+ DirectiveDefinition: boolean;
304
+ rootField: boolean;
305
+ }];
306
+ '@graphql-eslint/strict-id-in-types': "error";
307
+ '@graphql-eslint/unique-directive-names': "error";
308
+ '@graphql-eslint/unique-directive-names-per-location': "error";
309
+ '@graphql-eslint/unique-enum-value-names': "error";
310
+ '@graphql-eslint/unique-field-definition-names': "error";
311
+ '@graphql-eslint/unique-operation-types': "error";
312
+ '@graphql-eslint/unique-type-names': "error";
313
+ };
12
314
  };
13
315
  'flat/schema-relay': {
14
- rules: any;
316
+ rules: {
317
+ '@graphql-eslint/relay-arguments': "error";
318
+ '@graphql-eslint/relay-connection-types': "error";
319
+ '@graphql-eslint/relay-edge-types': "error";
320
+ '@graphql-eslint/relay-page-info': "error";
321
+ };
15
322
  };
16
323
  'flat/operations-recommended': {
17
- rules: any;
324
+ rules: {
325
+ '@graphql-eslint/executable-definitions': "error";
326
+ '@graphql-eslint/fields-on-correct-type': "error";
327
+ '@graphql-eslint/fragments-on-composite-type': "error";
328
+ '@graphql-eslint/known-argument-names': "error";
329
+ '@graphql-eslint/known-directives': "error";
330
+ '@graphql-eslint/known-fragment-names': "error";
331
+ '@graphql-eslint/known-type-names': "error";
332
+ '@graphql-eslint/lone-anonymous-operation': "error";
333
+ '@graphql-eslint/naming-convention': ["error", {
334
+ VariableDefinition: string;
335
+ OperationDefinition: {
336
+ style: string;
337
+ forbiddenPrefixes: string[];
338
+ forbiddenSuffixes: string[];
339
+ };
340
+ FragmentDefinition: {
341
+ style: string;
342
+ forbiddenPrefixes: string[];
343
+ forbiddenSuffixes: string[];
344
+ };
345
+ }];
346
+ '@graphql-eslint/no-anonymous-operations': "error";
347
+ '@graphql-eslint/no-deprecated': "error";
348
+ '@graphql-eslint/no-duplicate-fields': "error";
349
+ '@graphql-eslint/no-fragment-cycles': "error";
350
+ '@graphql-eslint/no-undefined-variables': "error";
351
+ '@graphql-eslint/no-unused-fragments': "error";
352
+ '@graphql-eslint/no-unused-variables': "error";
353
+ '@graphql-eslint/one-field-subscriptions': "error";
354
+ '@graphql-eslint/overlapping-fields-can-be-merged': "error";
355
+ '@graphql-eslint/possible-fragment-spread': "error";
356
+ '@graphql-eslint/provided-required-arguments': "error";
357
+ '@graphql-eslint/require-selections': "error";
358
+ '@graphql-eslint/scalar-leafs': "error";
359
+ '@graphql-eslint/selection-set-depth': ["error", {
360
+ maxDepth: number;
361
+ }];
362
+ '@graphql-eslint/unique-argument-names': "error";
363
+ '@graphql-eslint/unique-directive-names-per-location': "error";
364
+ '@graphql-eslint/unique-fragment-name': "error";
365
+ '@graphql-eslint/unique-input-field-names': "error";
366
+ '@graphql-eslint/unique-operation-name': "error";
367
+ '@graphql-eslint/unique-variable-names': "error";
368
+ '@graphql-eslint/value-literals-of-correct-type': "error";
369
+ '@graphql-eslint/variables-are-input-types': "error";
370
+ '@graphql-eslint/variables-in-allowed-position': "error";
371
+ };
18
372
  };
19
373
  'flat/operations-all': {
20
- rules: any;
374
+ rules: {
375
+ '@graphql-eslint/alphabetize': ["error", {
376
+ definitions: boolean;
377
+ selections: string[];
378
+ variables: boolean;
379
+ arguments: string[];
380
+ groups: string[];
381
+ }];
382
+ '@graphql-eslint/lone-executable-definition': "error";
383
+ '@graphql-eslint/match-document-filename': ["error", {
384
+ query: string;
385
+ mutation: string;
386
+ subscription: string;
387
+ fragment: string;
388
+ }];
389
+ '@graphql-eslint/no-one-place-fragments': "error";
390
+ '@graphql-eslint/require-import-fragment': "error";
391
+ '@graphql-eslint/executable-definitions': "error";
392
+ '@graphql-eslint/fields-on-correct-type': "error";
393
+ '@graphql-eslint/fragments-on-composite-type': "error";
394
+ '@graphql-eslint/known-argument-names': "error";
395
+ '@graphql-eslint/known-directives': "error";
396
+ '@graphql-eslint/known-fragment-names': "error";
397
+ '@graphql-eslint/known-type-names': "error";
398
+ '@graphql-eslint/lone-anonymous-operation': "error";
399
+ '@graphql-eslint/naming-convention': ["error", {
400
+ VariableDefinition: string;
401
+ OperationDefinition: {
402
+ style: string;
403
+ forbiddenPrefixes: string[];
404
+ forbiddenSuffixes: string[];
405
+ };
406
+ FragmentDefinition: {
407
+ style: string;
408
+ forbiddenPrefixes: string[];
409
+ forbiddenSuffixes: string[];
410
+ };
411
+ }];
412
+ '@graphql-eslint/no-anonymous-operations': "error";
413
+ '@graphql-eslint/no-deprecated': "error";
414
+ '@graphql-eslint/no-duplicate-fields': "error";
415
+ '@graphql-eslint/no-fragment-cycles': "error";
416
+ '@graphql-eslint/no-undefined-variables': "error";
417
+ '@graphql-eslint/no-unused-fragments': "error";
418
+ '@graphql-eslint/no-unused-variables': "error";
419
+ '@graphql-eslint/one-field-subscriptions': "error";
420
+ '@graphql-eslint/overlapping-fields-can-be-merged': "error";
421
+ '@graphql-eslint/possible-fragment-spread': "error";
422
+ '@graphql-eslint/provided-required-arguments': "error";
423
+ '@graphql-eslint/require-selections': "error";
424
+ '@graphql-eslint/scalar-leafs': "error";
425
+ '@graphql-eslint/selection-set-depth': ["error", {
426
+ maxDepth: number;
427
+ }];
428
+ '@graphql-eslint/unique-argument-names': "error";
429
+ '@graphql-eslint/unique-directive-names-per-location': "error";
430
+ '@graphql-eslint/unique-fragment-name': "error";
431
+ '@graphql-eslint/unique-input-field-names': "error";
432
+ '@graphql-eslint/unique-operation-name': "error";
433
+ '@graphql-eslint/unique-variable-names': "error";
434
+ '@graphql-eslint/value-literals-of-correct-type': "error";
435
+ '@graphql-eslint/variables-are-input-types': "error";
436
+ '@graphql-eslint/variables-in-allowed-position': "error";
437
+ };
21
438
  };
22
439
  };
23
440
 
@@ -1,4 +1,3 @@
1
- import "../chunk-UIAXBAMD.js";
2
1
  import operationsAllConfig from "./operations-all.js";
3
2
  import operationsRecommendedConfig from "./operations-recommended.js";
4
3
  import schemaAllConfig from "./schema-all.js";
@@ -1,22 +1,22 @@
1
1
  declare const _default: {
2
2
  extends: string;
3
3
  rules: {
4
- '@graphql-eslint/alphabetize': (string | {
4
+ '@graphql-eslint/alphabetize': ["error", {
5
5
  definitions: boolean;
6
6
  selections: string[];
7
7
  variables: boolean;
8
8
  arguments: string[];
9
9
  groups: string[];
10
- })[];
11
- '@graphql-eslint/lone-executable-definition': string;
12
- '@graphql-eslint/match-document-filename': (string | {
10
+ }];
11
+ '@graphql-eslint/lone-executable-definition': "error";
12
+ '@graphql-eslint/match-document-filename': ["error", {
13
13
  query: string;
14
14
  mutation: string;
15
15
  subscription: string;
16
16
  fragment: string;
17
- })[];
18
- '@graphql-eslint/no-one-place-fragments': string;
19
- '@graphql-eslint/require-import-fragment': string;
17
+ }];
18
+ '@graphql-eslint/no-one-place-fragments': "error";
19
+ '@graphql-eslint/require-import-fragment': "error";
20
20
  };
21
21
  };
22
22
 
@@ -1,35 +1,30 @@
1
- import {
2
- __commonJS
3
- } from "../chunk-UIAXBAMD.js";
4
- var require_operations_all = __commonJS({
5
- "src/configs/operations-all.ts"(exports, module) {
6
- module.exports = {
7
- extends: "./configs/operations-recommended",
8
- rules: {
9
- "@graphql-eslint/alphabetize": [
10
- "error",
11
- {
12
- definitions: !0,
13
- selections: ["OperationDefinition", "FragmentDefinition"],
14
- variables: !0,
15
- arguments: ["Field", "Directive"],
16
- groups: ["...", "id", "*", "{"]
17
- }
18
- ],
19
- "@graphql-eslint/lone-executable-definition": "error",
20
- "@graphql-eslint/match-document-filename": [
21
- "error",
22
- {
23
- query: "kebab-case",
24
- mutation: "kebab-case",
25
- subscription: "kebab-case",
26
- fragment: "kebab-case"
27
- }
28
- ],
29
- "@graphql-eslint/no-one-place-fragments": "error",
30
- "@graphql-eslint/require-import-fragment": "error"
1
+ var operations_all_default = {
2
+ extends: "./configs/operations-recommended",
3
+ rules: {
4
+ "@graphql-eslint/alphabetize": [
5
+ "error",
6
+ {
7
+ definitions: !0,
8
+ selections: ["OperationDefinition", "FragmentDefinition"],
9
+ variables: !0,
10
+ arguments: ["Field", "Directive"],
11
+ groups: ["...", "id", "*", "{"]
31
12
  }
32
- };
13
+ ],
14
+ "@graphql-eslint/lone-executable-definition": "error",
15
+ "@graphql-eslint/match-document-filename": [
16
+ "error",
17
+ {
18
+ query: "kebab-case",
19
+ mutation: "kebab-case",
20
+ subscription: "kebab-case",
21
+ fragment: "kebab-case"
22
+ }
23
+ ],
24
+ "@graphql-eslint/no-one-place-fragments": "error",
25
+ "@graphql-eslint/require-import-fragment": "error"
33
26
  }
34
- });
35
- export default require_operations_all();
27
+ };
28
+ export {
29
+ operations_all_default as default
30
+ };
@@ -2,15 +2,15 @@ declare const _default: {
2
2
  parser: string;
3
3
  plugins: string[];
4
4
  rules: {
5
- '@graphql-eslint/executable-definitions': string;
6
- '@graphql-eslint/fields-on-correct-type': string;
7
- '@graphql-eslint/fragments-on-composite-type': string;
8
- '@graphql-eslint/known-argument-names': string;
9
- '@graphql-eslint/known-directives': string;
10
- '@graphql-eslint/known-fragment-names': string;
11
- '@graphql-eslint/known-type-names': string;
12
- '@graphql-eslint/lone-anonymous-operation': string;
13
- '@graphql-eslint/naming-convention': (string | {
5
+ '@graphql-eslint/executable-definitions': "error";
6
+ '@graphql-eslint/fields-on-correct-type': "error";
7
+ '@graphql-eslint/fragments-on-composite-type': "error";
8
+ '@graphql-eslint/known-argument-names': "error";
9
+ '@graphql-eslint/known-directives': "error";
10
+ '@graphql-eslint/known-fragment-names': "error";
11
+ '@graphql-eslint/known-type-names': "error";
12
+ '@graphql-eslint/lone-anonymous-operation': "error";
13
+ '@graphql-eslint/naming-convention': ["error", {
14
14
  VariableDefinition: string;
15
15
  OperationDefinition: {
16
16
  style: string;
@@ -22,32 +22,32 @@ declare const _default: {
22
22
  forbiddenPrefixes: string[];
23
23
  forbiddenSuffixes: string[];
24
24
  };
25
- })[];
26
- '@graphql-eslint/no-anonymous-operations': string;
27
- '@graphql-eslint/no-deprecated': string;
28
- '@graphql-eslint/no-duplicate-fields': string;
29
- '@graphql-eslint/no-fragment-cycles': string;
30
- '@graphql-eslint/no-undefined-variables': string;
31
- '@graphql-eslint/no-unused-fragments': string;
32
- '@graphql-eslint/no-unused-variables': string;
33
- '@graphql-eslint/one-field-subscriptions': string;
34
- '@graphql-eslint/overlapping-fields-can-be-merged': string;
35
- '@graphql-eslint/possible-fragment-spread': string;
36
- '@graphql-eslint/provided-required-arguments': string;
37
- '@graphql-eslint/require-selections': string;
38
- '@graphql-eslint/scalar-leafs': string;
39
- '@graphql-eslint/selection-set-depth': (string | {
25
+ }];
26
+ '@graphql-eslint/no-anonymous-operations': "error";
27
+ '@graphql-eslint/no-deprecated': "error";
28
+ '@graphql-eslint/no-duplicate-fields': "error";
29
+ '@graphql-eslint/no-fragment-cycles': "error";
30
+ '@graphql-eslint/no-undefined-variables': "error";
31
+ '@graphql-eslint/no-unused-fragments': "error";
32
+ '@graphql-eslint/no-unused-variables': "error";
33
+ '@graphql-eslint/one-field-subscriptions': "error";
34
+ '@graphql-eslint/overlapping-fields-can-be-merged': "error";
35
+ '@graphql-eslint/possible-fragment-spread': "error";
36
+ '@graphql-eslint/provided-required-arguments': "error";
37
+ '@graphql-eslint/require-selections': "error";
38
+ '@graphql-eslint/scalar-leafs': "error";
39
+ '@graphql-eslint/selection-set-depth': ["error", {
40
40
  maxDepth: number;
41
- })[];
42
- '@graphql-eslint/unique-argument-names': string;
43
- '@graphql-eslint/unique-directive-names-per-location': string;
44
- '@graphql-eslint/unique-fragment-name': string;
45
- '@graphql-eslint/unique-input-field-names': string;
46
- '@graphql-eslint/unique-operation-name': string;
47
- '@graphql-eslint/unique-variable-names': string;
48
- '@graphql-eslint/value-literals-of-correct-type': string;
49
- '@graphql-eslint/variables-are-input-types': string;
50
- '@graphql-eslint/variables-in-allowed-position': string;
41
+ }];
42
+ '@graphql-eslint/unique-argument-names': "error";
43
+ '@graphql-eslint/unique-directive-names-per-location': "error";
44
+ '@graphql-eslint/unique-fragment-name': "error";
45
+ '@graphql-eslint/unique-input-field-names': "error";
46
+ '@graphql-eslint/unique-operation-name': "error";
47
+ '@graphql-eslint/unique-variable-names': "error";
48
+ '@graphql-eslint/value-literals-of-correct-type': "error";
49
+ '@graphql-eslint/variables-are-input-types': "error";
50
+ '@graphql-eslint/variables-in-allowed-position': "error";
51
51
  };
52
52
  };
53
53