@graphql-eslint/eslint-plugin 3.14.0-alpha-20221222211346-788e7eb → 3.14.0-alpha-20221223011223-bd3e820

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. package/cjs/configs/index.js +10 -10
  2. package/cjs/documents.js +5 -5
  3. package/cjs/estree-converter/converter.js +2 -2
  4. package/cjs/estree-converter/index.js +3 -3
  5. package/cjs/estree-converter/utils.js +2 -2
  6. package/cjs/flat-configs.js +36 -0
  7. package/cjs/index.js +16 -14
  8. package/cjs/parser.js +13 -13
  9. package/cjs/processor.js +2 -2
  10. package/cjs/rules/alphabetize.js +7 -7
  11. package/cjs/rules/graphql-js-validation.js +9 -9
  12. package/cjs/rules/index.js +66 -66
  13. package/cjs/rules/lone-executable-definition.js +4 -4
  14. package/cjs/rules/match-document-filename.js +4 -4
  15. package/cjs/rules/naming-convention.js +6 -6
  16. package/cjs/rules/no-anonymous-operations.js +2 -2
  17. package/cjs/rules/no-deprecated.js +2 -2
  18. package/cjs/rules/no-one-place-fragments.js +3 -4
  19. package/cjs/rules/no-root-type.js +3 -3
  20. package/cjs/rules/no-scalar-result-type-on-mutation.js +2 -2
  21. package/cjs/rules/no-unreachable-types.js +3 -3
  22. package/cjs/rules/no-unused-fields.js +3 -3
  23. package/cjs/rules/relay-arguments.js +2 -2
  24. package/cjs/rules/relay-edge-types.js +6 -6
  25. package/cjs/rules/relay-page-info.js +5 -5
  26. package/cjs/rules/require-deprecation-date.js +2 -2
  27. package/cjs/rules/require-deprecation-reason.js +2 -2
  28. package/cjs/rules/require-description.js +8 -8
  29. package/cjs/rules/require-field-of-type-query-in-mutation-result.js +3 -3
  30. package/cjs/rules/require-id-when-available.js +8 -8
  31. package/cjs/rules/selection-set-depth.js +5 -5
  32. package/cjs/rules/strict-id-in-types.js +7 -7
  33. package/cjs/rules/unique-fragment-name.js +4 -4
  34. package/cjs/rules/unique-operation-name.js +2 -2
  35. package/cjs/schema.js +2 -2
  36. package/esm/cache.js +25 -0
  37. package/esm/configs/base.js +4 -0
  38. package/esm/configs/index.js +12 -0
  39. package/esm/configs/operations-all.js +29 -0
  40. package/esm/configs/operations-recommended.js +53 -0
  41. package/esm/configs/relay.js +9 -0
  42. package/esm/configs/schema-all.js +22 -0
  43. package/esm/configs/schema-recommended.js +49 -0
  44. package/esm/documents.js +144 -0
  45. package/esm/estree-converter/converter.js +58 -0
  46. package/esm/estree-converter/index.js +3 -0
  47. package/esm/estree-converter/types.js +1 -0
  48. package/esm/estree-converter/utils.js +102 -0
  49. package/esm/flat-configs.js +33 -0
  50. package/esm/graphql-config.js +49 -0
  51. package/esm/index.js +9 -0
  52. package/esm/package.json +1 -0
  53. package/esm/parser.js +56 -0
  54. package/esm/processor.js +75 -0
  55. package/esm/rules/alphabetize.js +344 -0
  56. package/esm/rules/description-style.js +75 -0
  57. package/esm/rules/graphql-js-validation.js +498 -0
  58. package/esm/rules/index.js +71 -0
  59. package/esm/rules/input-name.js +133 -0
  60. package/esm/rules/lone-executable-definition.js +85 -0
  61. package/esm/rules/match-document-filename.js +232 -0
  62. package/esm/rules/naming-convention.js +307 -0
  63. package/esm/rules/no-anonymous-operations.js +64 -0
  64. package/esm/rules/no-case-insensitive-enum-values-duplicates.js +58 -0
  65. package/esm/rules/no-deprecated.js +121 -0
  66. package/esm/rules/no-duplicate-fields.js +109 -0
  67. package/esm/rules/no-hashtag-description.js +86 -0
  68. package/esm/rules/no-one-place-fragments.js +80 -0
  69. package/esm/rules/no-root-type.js +83 -0
  70. package/esm/rules/no-scalar-result-type-on-mutation.js +63 -0
  71. package/esm/rules/no-typename-prefix.js +62 -0
  72. package/esm/rules/no-unreachable-types.js +154 -0
  73. package/esm/rules/no-unused-fields.js +127 -0
  74. package/esm/rules/relay-arguments.js +118 -0
  75. package/esm/rules/relay-connection-types.js +104 -0
  76. package/esm/rules/relay-edge-types.js +186 -0
  77. package/esm/rules/relay-page-info.js +97 -0
  78. package/esm/rules/require-deprecation-date.js +120 -0
  79. package/esm/rules/require-deprecation-reason.js +53 -0
  80. package/esm/rules/require-description.js +190 -0
  81. package/esm/rules/require-field-of-type-query-in-mutation-result.js +69 -0
  82. package/esm/rules/require-id-when-available.js +196 -0
  83. package/esm/rules/require-nullable-fields-with-oneof.js +58 -0
  84. package/esm/rules/require-type-pattern-with-oneof.js +57 -0
  85. package/esm/rules/selection-set-depth.js +131 -0
  86. package/esm/rules/strict-id-in-types.js +159 -0
  87. package/esm/rules/unique-fragment-name.js +86 -0
  88. package/esm/rules/unique-operation-name.js +62 -0
  89. package/esm/schema.js +37 -0
  90. package/esm/testkit.js +181 -0
  91. package/esm/types.js +1 -0
  92. package/esm/utils.js +83 -0
  93. package/package.json +10 -1
  94. package/typings/estree-converter/converter.d.cts +1 -1
  95. package/typings/estree-converter/converter.d.ts +1 -1
  96. package/typings/estree-converter/index.d.cts +3 -3
  97. package/typings/estree-converter/index.d.ts +3 -3
  98. package/typings/estree-converter/types.d.cts +3 -3
  99. package/typings/estree-converter/types.d.ts +3 -3
  100. package/typings/estree-converter/utils.d.cts +2 -2
  101. package/typings/estree-converter/utils.d.ts +2 -2
  102. package/typings/flat-configs.d.cts +248 -0
  103. package/typings/flat-configs.d.ts +248 -0
  104. package/typings/graphql-config.d.cts +1 -1
  105. package/typings/graphql-config.d.ts +1 -1
  106. package/typings/index.d.cts +8 -7
  107. package/typings/index.d.ts +8 -7
  108. package/typings/parser.d.cts +1 -1
  109. package/typings/parser.d.ts +1 -1
  110. package/typings/rules/alphabetize.d.cts +1 -1
  111. package/typings/rules/alphabetize.d.ts +1 -1
  112. package/typings/rules/description-style.d.cts +1 -1
  113. package/typings/rules/description-style.d.ts +1 -1
  114. package/typings/rules/graphql-js-validation.d.cts +1 -1
  115. package/typings/rules/graphql-js-validation.d.ts +1 -1
  116. package/typings/rules/index.d.cts +45 -45
  117. package/typings/rules/index.d.ts +45 -45
  118. package/typings/rules/input-name.d.cts +1 -1
  119. package/typings/rules/input-name.d.ts +1 -1
  120. package/typings/rules/lone-executable-definition.d.cts +1 -1
  121. package/typings/rules/lone-executable-definition.d.ts +1 -1
  122. package/typings/rules/match-document-filename.d.cts +2 -2
  123. package/typings/rules/match-document-filename.d.ts +2 -2
  124. package/typings/rules/naming-convention.d.cts +1 -1
  125. package/typings/rules/naming-convention.d.ts +1 -1
  126. package/typings/rules/no-anonymous-operations.d.cts +1 -1
  127. package/typings/rules/no-anonymous-operations.d.ts +1 -1
  128. package/typings/rules/no-case-insensitive-enum-values-duplicates.d.cts +1 -1
  129. package/typings/rules/no-case-insensitive-enum-values-duplicates.d.ts +1 -1
  130. package/typings/rules/no-deprecated.d.cts +1 -1
  131. package/typings/rules/no-deprecated.d.ts +1 -1
  132. package/typings/rules/no-duplicate-fields.d.cts +1 -1
  133. package/typings/rules/no-duplicate-fields.d.ts +1 -1
  134. package/typings/rules/no-hashtag-description.d.cts +1 -1
  135. package/typings/rules/no-hashtag-description.d.ts +1 -1
  136. package/typings/rules/no-one-place-fragments.d.cts +1 -1
  137. package/typings/rules/no-one-place-fragments.d.ts +1 -1
  138. package/typings/rules/no-root-type.d.cts +1 -1
  139. package/typings/rules/no-root-type.d.ts +1 -1
  140. package/typings/rules/no-scalar-result-type-on-mutation.d.cts +1 -1
  141. package/typings/rules/no-scalar-result-type-on-mutation.d.ts +1 -1
  142. package/typings/rules/no-typename-prefix.d.cts +1 -1
  143. package/typings/rules/no-typename-prefix.d.ts +1 -1
  144. package/typings/rules/no-unreachable-types.d.cts +1 -1
  145. package/typings/rules/no-unreachable-types.d.ts +1 -1
  146. package/typings/rules/no-unused-fields.d.cts +1 -1
  147. package/typings/rules/no-unused-fields.d.ts +1 -1
  148. package/typings/rules/relay-arguments.d.cts +1 -1
  149. package/typings/rules/relay-arguments.d.ts +1 -1
  150. package/typings/rules/relay-connection-types.d.cts +1 -1
  151. package/typings/rules/relay-connection-types.d.ts +1 -1
  152. package/typings/rules/relay-edge-types.d.cts +1 -1
  153. package/typings/rules/relay-edge-types.d.ts +1 -1
  154. package/typings/rules/relay-page-info.d.cts +1 -1
  155. package/typings/rules/relay-page-info.d.ts +1 -1
  156. package/typings/rules/require-deprecation-date.d.cts +1 -1
  157. package/typings/rules/require-deprecation-date.d.ts +1 -1
  158. package/typings/rules/require-deprecation-reason.d.cts +1 -1
  159. package/typings/rules/require-deprecation-reason.d.ts +1 -1
  160. package/typings/rules/require-description.d.cts +1 -1
  161. package/typings/rules/require-description.d.ts +1 -1
  162. package/typings/rules/require-field-of-type-query-in-mutation-result.d.cts +1 -1
  163. package/typings/rules/require-field-of-type-query-in-mutation-result.d.ts +1 -1
  164. package/typings/rules/require-id-when-available.d.cts +1 -1
  165. package/typings/rules/require-id-when-available.d.ts +1 -1
  166. package/typings/rules/require-nullable-fields-with-oneof.d.cts +1 -1
  167. package/typings/rules/require-nullable-fields-with-oneof.d.ts +1 -1
  168. package/typings/rules/require-type-pattern-with-oneof.d.cts +1 -1
  169. package/typings/rules/require-type-pattern-with-oneof.d.ts +1 -1
  170. package/typings/rules/selection-set-depth.d.cts +1 -1
  171. package/typings/rules/selection-set-depth.d.ts +1 -1
  172. package/typings/rules/strict-id-in-types.d.cts +1 -1
  173. package/typings/rules/strict-id-in-types.d.ts +1 -1
  174. package/typings/rules/unique-fragment-name.d.cts +2 -2
  175. package/typings/rules/unique-fragment-name.d.ts +2 -2
  176. package/typings/rules/unique-operation-name.d.cts +1 -1
  177. package/typings/rules/unique-operation-name.d.ts +1 -1
  178. package/typings/schema.d.cts +1 -1
  179. package/typings/schema.d.ts +1 -1
  180. package/typings/testkit.d.cts +3 -3
  181. package/typings/testkit.d.ts +3 -3
  182. package/typings/types.d.cts +2 -2
  183. package/typings/types.d.ts +2 -2
  184. package/typings/utils.d.cts +2 -2
  185. package/typings/utils.d.ts +2 -2
@@ -1,52 +1,52 @@
1
1
  export declare const rules: {
2
- alphabetize: import("..").GraphQLESLintRule<{
2
+ alphabetize: import("../types.js").GraphQLESLintRule<{
3
3
  definitions?: boolean;
4
- selections?: import("json-schema-to-ts/lib/types/type-utils").Writable<"OperationDefinition" | "FragmentDefinition">[];
5
- arguments?: import("json-schema-to-ts/lib/types/type-utils").Writable<"Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition">[];
4
+ selections?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"OperationDefinition" | "FragmentDefinition">[];
5
+ arguments?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition">[];
6
6
  values?: "EnumTypeDefinition"[];
7
- fields?: import("json-schema-to-ts/lib/types/type-utils").Writable<"ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition">[];
7
+ fields?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition">[];
8
8
  variables?: "OperationDefinition"[];
9
9
  groups?: string[];
10
10
  }[], false>;
11
- 'description-style': import("..").GraphQLESLintRule<{
11
+ 'description-style': import("../types.js").GraphQLESLintRule<{
12
12
  style?: "block" | "inline";
13
13
  }[], false>;
14
- 'input-name': import("..").GraphQLESLintRule<{
14
+ 'input-name': import("../types.js").GraphQLESLintRule<{
15
15
  checkInputType?: boolean;
16
16
  caseSensitiveInputType?: boolean;
17
17
  checkQueries?: boolean;
18
18
  checkMutations?: boolean;
19
19
  }[], false>;
20
- 'lone-executable-definition': import("..").GraphQLESLintRule<{
20
+ 'lone-executable-definition': import("../types.js").GraphQLESLintRule<{
21
21
  ignore?: ("fragment" | "query" | "mutation" | "subscription")[];
22
22
  }[], false>;
23
- 'match-document-filename': import("..").GraphQLESLintRule<{
24
- fragment?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle"> | {
25
- style?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle">;
23
+ 'match-document-filename': import("../types.js").GraphQLESLintRule<{
24
+ fragment?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
25
+ style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle">;
26
26
  suffix?: string;
27
27
  prefix?: string;
28
28
  };
29
- query?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle"> | {
30
- style?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle">;
29
+ query?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
30
+ style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle">;
31
31
  suffix?: string;
32
32
  prefix?: string;
33
33
  };
34
- mutation?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle"> | {
35
- style?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle">;
34
+ mutation?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
35
+ style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle">;
36
36
  suffix?: string;
37
37
  prefix?: string;
38
38
  };
39
- subscription?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle"> | {
40
- style?: import("json-schema-to-ts/lib/types/type-utils").Writable<import("../utils").CaseStyle | "matchDocumentStyle">;
39
+ subscription?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle"> | {
40
+ style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<import("../utils.js").CaseStyle | "matchDocumentStyle">;
41
41
  suffix?: string;
42
42
  prefix?: string;
43
43
  };
44
44
  fileExtension?: ".gql" | ".graphql";
45
45
  }[], false>;
46
- 'naming-convention': import("..").GraphQLESLintRule<{
46
+ 'naming-convention': import("../types.js").GraphQLESLintRule<{
47
47
  [x: string]: unknown;
48
- types?: import("json-schema-to-ts/lib/types/type-utils").Writable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE"> | {
49
- style?: import("json-schema-to-ts/lib/types/type-utils").Writable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE">;
48
+ types?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE"> | {
49
+ style?: import("json-schema-to-ts/lib/types/type-utils/writable.js").DeepWritable<"camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE">;
50
50
  suffix?: string;
51
51
  prefix?: string;
52
52
  forbiddenPrefixes?: string[];
@@ -56,45 +56,45 @@ export declare const rules: {
56
56
  allowLeadingUnderscore?: boolean;
57
57
  allowTrailingUnderscore?: boolean;
58
58
  }[], false>;
59
- 'no-anonymous-operations': import("..").GraphQLESLintRule<any[], false>;
60
- 'no-case-insensitive-enum-values-duplicates': import("..").GraphQLESLintRule<any[], false>;
61
- 'no-deprecated': import("..").GraphQLESLintRule<[], true>;
62
- 'no-duplicate-fields': import("..").GraphQLESLintRule<any[], false>;
63
- 'no-hashtag-description': import("..").GraphQLESLintRule<any[], false>;
64
- 'no-one-place-fragments': import("..").GraphQLESLintRule<any[], false>;
65
- 'no-root-type': import("..").GraphQLESLintRule<{
59
+ 'no-anonymous-operations': import("../types.js").GraphQLESLintRule<any[], false>;
60
+ 'no-case-insensitive-enum-values-duplicates': import("../types.js").GraphQLESLintRule<any[], false>;
61
+ 'no-deprecated': import("../types.js").GraphQLESLintRule<[], true>;
62
+ 'no-duplicate-fields': import("../types.js").GraphQLESLintRule<any[], false>;
63
+ 'no-hashtag-description': import("../types.js").GraphQLESLintRule<any[], false>;
64
+ 'no-one-place-fragments': import("../types.js").GraphQLESLintRule<any[], false>;
65
+ 'no-root-type': import("../types.js").GraphQLESLintRule<{
66
66
  disallow: ("mutation" | "subscription")[];
67
67
  }[], false>;
68
- 'no-scalar-result-type-on-mutation': import("..").GraphQLESLintRule<any[], false>;
69
- 'no-typename-prefix': import("..").GraphQLESLintRule<any[], false>;
70
- 'no-unreachable-types': import("..").GraphQLESLintRule<any[], false>;
71
- 'no-unused-fields': import("..").GraphQLESLintRule<any[], false>;
72
- 'relay-arguments': import("..").GraphQLESLintRule<{
68
+ 'no-scalar-result-type-on-mutation': import("../types.js").GraphQLESLintRule<any[], false>;
69
+ 'no-typename-prefix': import("../types.js").GraphQLESLintRule<any[], false>;
70
+ 'no-unreachable-types': import("../types.js").GraphQLESLintRule<any[], false>;
71
+ 'no-unused-fields': import("../types.js").GraphQLESLintRule<any[], false>;
72
+ 'relay-arguments': import("../types.js").GraphQLESLintRule<{
73
73
  includeBoth?: boolean;
74
74
  }[], true>;
75
- 'relay-connection-types': import("..").GraphQLESLintRule<any[], false>;
76
- 'relay-edge-types': import("..").GraphQLESLintRule<{
75
+ 'relay-connection-types': import("../types.js").GraphQLESLintRule<any[], false>;
76
+ 'relay-edge-types': import("../types.js").GraphQLESLintRule<{
77
77
  withEdgeSuffix?: boolean;
78
78
  shouldImplementNode?: boolean;
79
79
  listTypeCanWrapOnlyEdgeType?: boolean;
80
80
  }[], true>;
81
- 'relay-page-info': import("..").GraphQLESLintRule<any[], false>;
82
- 'require-deprecation-date': import("..").GraphQLESLintRule<{
81
+ 'relay-page-info': import("../types.js").GraphQLESLintRule<any[], false>;
82
+ 'require-deprecation-date': import("../types.js").GraphQLESLintRule<{
83
83
  argumentName?: string;
84
84
  }[], false>;
85
- 'require-deprecation-reason': import("..").GraphQLESLintRule<any[], false>;
86
- 'require-description': import("..").GraphQLESLintRule<import("./require-description").RuleOptions, false>;
87
- 'require-field-of-type-query-in-mutation-result': import("..").GraphQLESLintRule<any[], false>;
88
- 'require-id-when-available': import("..").GraphQLESLintRule<{
85
+ 'require-deprecation-reason': import("../types.js").GraphQLESLintRule<any[], false>;
86
+ 'require-description': import("../types.js").GraphQLESLintRule<import("./require-description.js").RuleOptions, false>;
87
+ 'require-field-of-type-query-in-mutation-result': import("../types.js").GraphQLESLintRule<any[], false>;
88
+ 'require-id-when-available': import("../types.js").GraphQLESLintRule<{
89
89
  fieldName?: string | string[];
90
90
  }[], true>;
91
- 'require-nullable-fields-with-oneof': import("..").GraphQLESLintRule<any[], false>;
92
- 'require-type-pattern-with-oneof': import("..").GraphQLESLintRule<any[], false>;
93
- 'selection-set-depth': import("..").GraphQLESLintRule<{
91
+ 'require-nullable-fields-with-oneof': import("../types.js").GraphQLESLintRule<any[], false>;
92
+ 'require-type-pattern-with-oneof': import("../types.js").GraphQLESLintRule<any[], false>;
93
+ 'selection-set-depth': import("../types.js").GraphQLESLintRule<{
94
94
  ignore?: string[];
95
95
  maxDepth: number;
96
96
  }[], false>;
97
- 'strict-id-in-types': import("..").GraphQLESLintRule<{
97
+ 'strict-id-in-types': import("../types.js").GraphQLESLintRule<{
98
98
  acceptedIdNames?: string[];
99
99
  acceptedIdTypes?: string[];
100
100
  exceptions?: {
@@ -102,6 +102,6 @@ export declare const rules: {
102
102
  suffixes?: string[];
103
103
  };
104
104
  }[], false>;
105
- 'unique-fragment-name': import("..").GraphQLESLintRule<any[], false>;
106
- 'unique-operation-name': import("..").GraphQLESLintRule<any[], false>;
105
+ 'unique-fragment-name': import("../types.js").GraphQLESLintRule<any[], false>;
106
+ 'unique-operation-name': import("../types.js").GraphQLESLintRule<any[], false>;
107
107
  };
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,5 +1,5 @@
1
- import { CaseStyle as _CaseStyle } from '../utils';
2
- import { GraphQLESLintRule } from '../types';
1
+ import { CaseStyle as _CaseStyle } from '../utils.cjs';
2
+ import { GraphQLESLintRule } from '../types.cjs';
3
3
  import { FromSchema } from 'json-schema-to-ts';
4
4
  type CaseStyle = _CaseStyle | 'matchDocumentStyle';
5
5
  declare const schema: {
@@ -1,5 +1,5 @@
1
- import { CaseStyle as _CaseStyle } from '../utils';
2
- import { GraphQLESLintRule } from '../types';
1
+ import { CaseStyle as _CaseStyle } from '../utils.js';
2
+ import { GraphQLESLintRule } from '../types.js';
3
3
  import { FromSchema } from 'json-schema-to-ts';
4
4
  type CaseStyle = _CaseStyle | 'matchDocumentStyle';
5
5
  declare const schema: {
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  type AllowedStyle = 'camelCase' | 'PascalCase' | 'snake_case' | 'UPPER_CASE';
4
4
  declare const schema: {
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  type AllowedStyle = 'camelCase' | 'PascalCase' | 'snake_case' | 'UPPER_CASE';
4
4
  declare const schema: {
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule<[], true>;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule<[], true>;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
1
  import { Kind } from 'graphql';
2
- import type { GraphQLESLintRule } from '../types';
2
+ import { GraphQLESLintRule } from '../types.cjs';
3
3
  export declare const NON_OBJECT_TYPES: Kind[];
4
4
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
1
  import { Kind } from 'graphql';
2
- import type { GraphQLESLintRule } from '../types';
2
+ import { GraphQLESLintRule } from '../types.js';
3
3
  export declare const NON_OBJECT_TYPES: Kind[];
4
4
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,5 +1,5 @@
1
1
  import { Kind } from 'graphql';
2
- import type { GraphQLESLintRule } from '../types';
2
+ import { GraphQLESLintRule } from '../types.cjs';
3
3
  declare const ALLOWED_KINDS: readonly [Kind.OBJECT_TYPE_DEFINITION, Kind.INTERFACE_TYPE_DEFINITION, Kind.ENUM_TYPE_DEFINITION, Kind.SCALAR_TYPE_DEFINITION, Kind.INPUT_OBJECT_TYPE_DEFINITION, Kind.UNION_TYPE_DEFINITION, Kind.DIRECTIVE_DEFINITION, Kind.FIELD_DEFINITION, Kind.INPUT_VALUE_DEFINITION, Kind.ENUM_VALUE_DEFINITION, Kind.OPERATION_DEFINITION];
4
4
  type AllowedKind = typeof ALLOWED_KINDS[number];
5
5
  export type RuleOptions = [
@@ -1,5 +1,5 @@
1
1
  import { Kind } from 'graphql';
2
- import type { GraphQLESLintRule } from '../types';
2
+ import { GraphQLESLintRule } from '../types.js';
3
3
  declare const ALLOWED_KINDS: readonly [Kind.OBJECT_TYPE_DEFINITION, Kind.INTERFACE_TYPE_DEFINITION, Kind.ENUM_TYPE_DEFINITION, Kind.SCALAR_TYPE_DEFINITION, Kind.INPUT_OBJECT_TYPE_DEFINITION, Kind.UNION_TYPE_DEFINITION, Kind.DIRECTIVE_DEFINITION, Kind.FIELD_DEFINITION, Kind.INPUT_VALUE_DEFINITION, Kind.ENUM_VALUE_DEFINITION, Kind.OPERATION_DEFINITION];
4
4
  type AllowedKind = typeof ALLOWED_KINDS[number];
5
5
  export type RuleOptions = [
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import type { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly definitions: {
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly definitions: {
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,4 +1,4 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  import { FromSchema } from 'json-schema-to-ts';
3
3
  declare const schema: {
4
4
  readonly type: "array";
@@ -1,5 +1,5 @@
1
1
  import { ExecutableDefinitionNode } from 'graphql';
2
- import { GraphQLESLintRule, GraphQLESLintRuleContext } from '../types';
3
- import { GraphQLESTreeNode } from '../estree-converter';
2
+ import { GraphQLESLintRule, GraphQLESLintRuleContext } from '../types.cjs';
3
+ import { GraphQLESTreeNode } from '../estree-converter/index.cjs';
4
4
  export declare const checkNode: (context: GraphQLESLintRuleContext, node: GraphQLESTreeNode<ExecutableDefinitionNode>, ruleId: string) => void;
5
5
  export declare const rule: GraphQLESLintRule;
@@ -1,5 +1,5 @@
1
1
  import { ExecutableDefinitionNode } from 'graphql';
2
- import { GraphQLESLintRule, GraphQLESLintRuleContext } from '../types';
3
- import { GraphQLESTreeNode } from '../estree-converter';
2
+ import { GraphQLESLintRule, GraphQLESLintRuleContext } from '../types.js';
3
+ import { GraphQLESTreeNode } from '../estree-converter/index.js';
4
4
  export declare const checkNode: (context: GraphQLESLintRuleContext, node: GraphQLESTreeNode<ExecutableDefinitionNode>, ruleId: string) => void;
5
5
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.cjs';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,2 +1,2 @@
1
- import { GraphQLESLintRule } from '../types';
1
+ import { GraphQLESLintRule } from '../types.js';
2
2
  export declare const rule: GraphQLESLintRule;
@@ -1,3 +1,3 @@
1
1
  import { GraphQLProjectConfig } from 'graphql-config';
2
- import { ParserOptions, Schema } from './types';
2
+ import { ParserOptions, Schema } from './types.cjs';
3
3
  export declare function getSchema(project: GraphQLProjectConfig, schemaOptions?: ParserOptions['schemaOptions']): Schema;
@@ -1,3 +1,3 @@
1
1
  import { GraphQLProjectConfig } from 'graphql-config';
2
- import { ParserOptions, Schema } from './types';
2
+ import { ParserOptions, Schema } from './types.js';
3
3
  export declare function getSchema(project: GraphQLProjectConfig, schemaOptions?: ParserOptions['schemaOptions']): Schema;
@@ -1,7 +1,7 @@
1
1
  import { RuleTester } from 'eslint';
2
- import type { ASTKindToNode } from 'graphql';
3
- import type { GraphQLESTreeNode } from './estree-converter';
4
- import type { GraphQLESLintRule, ParserOptions } from './types';
2
+ import { ASTKindToNode } from 'graphql';
3
+ import { GraphQLESTreeNode } from './estree-converter/index.cjs';
4
+ import { GraphQLESLintRule, ParserOptions } from './types.cjs';
5
5
  export type GraphQLESLintRuleListener<WithTypeInfo extends boolean = false> = {
6
6
  [K in keyof ASTKindToNode]?: (node: GraphQLESTreeNode<ASTKindToNode[K], WithTypeInfo>) => void;
7
7
  } & Record<string, any>;
@@ -1,7 +1,7 @@
1
1
  import { RuleTester } from 'eslint';
2
- import type { ASTKindToNode } from 'graphql';
3
- import type { GraphQLESTreeNode } from './estree-converter';
4
- import type { GraphQLESLintRule, ParserOptions } from './types';
2
+ import { ASTKindToNode } from 'graphql';
3
+ import { GraphQLESTreeNode } from './estree-converter/index.js';
4
+ import { GraphQLESLintRule, ParserOptions } from './types.js';
5
5
  export type GraphQLESLintRuleListener<WithTypeInfo extends boolean = false> = {
6
6
  [K in keyof ASTKindToNode]?: (node: GraphQLESTreeNode<ASTKindToNode[K], WithTypeInfo>) => void;
7
7
  } & Record<string, any>;
@@ -3,8 +3,8 @@ import * as ESTree from 'estree';
3
3
  import { GraphQLSchema } from 'graphql';
4
4
  import { IExtensions, IGraphQLProject } from 'graphql-config';
5
5
  import { GraphQLParseOptions } from '@graphql-tools/utils';
6
- import { GraphQLESLintRuleListener } from './testkit';
7
- import { SiblingOperations } from './documents';
6
+ import { GraphQLESLintRuleListener } from './testkit.cjs';
7
+ import { SiblingOperations } from './documents.cjs';
8
8
  import { JSONSchema } from 'json-schema-to-ts';
9
9
  export type Schema = GraphQLSchema | Error | null;
10
10
  export type Pointer = string | string[];