@graphql-eslint/eslint-plugin 4.0.0-alpha-20230810160036-304c2c0 → 4.0.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. package/README.md +0 -2
  2. package/cjs/documents.d.ts +1 -1
  3. package/cjs/estree-converter/types.d.ts +1 -1
  4. package/cjs/flat-configs.d.ts +2 -2
  5. package/cjs/graphql-config.d.ts +1 -1
  6. package/cjs/graphql-config.js +1 -1
  7. package/cjs/index.d.ts +2 -4
  8. package/cjs/parser.d.ts +2 -2
  9. package/cjs/parser.js +2 -2
  10. package/cjs/processor.d.ts +1 -1
  11. package/cjs/rules/alphabetize.d.ts +4 -4
  12. package/cjs/rules/description-style.d.ts +3 -3
  13. package/cjs/rules/graphql-js-validation.d.ts +2 -2
  14. package/cjs/rules/index.d.ts +17 -19
  15. package/cjs/rules/index.js +1 -1
  16. package/cjs/rules/input-name.d.ts +3 -3
  17. package/cjs/rules/lone-executable-definition.d.ts +3 -3
  18. package/cjs/rules/match-document-filename.d.ts +3 -3
  19. package/cjs/rules/naming-convention.d.ts +3 -3
  20. package/cjs/rules/no-anonymous-operations.d.ts +2 -2
  21. package/cjs/rules/no-deprecated.d.ts +2 -2
  22. package/cjs/rules/no-duplicate-fields.d.ts +2 -2
  23. package/cjs/rules/no-hashtag-description.d.ts +2 -2
  24. package/cjs/rules/no-one-place-fragments.d.ts +2 -2
  25. package/cjs/rules/no-root-type.d.ts +3 -3
  26. package/cjs/rules/no-scalar-result-type-on-mutation.d.ts +2 -2
  27. package/cjs/rules/no-typename-prefix.d.ts +2 -2
  28. package/cjs/rules/no-unreachable-types.d.ts +2 -2
  29. package/cjs/rules/no-unreachable-types.js +1 -2
  30. package/cjs/rules/no-unused-fields.d.ts +2 -2
  31. package/cjs/rules/relay-arguments.d.ts +3 -3
  32. package/cjs/rules/relay-connection-types.d.ts +2 -2
  33. package/cjs/rules/relay-edge-types.d.ts +3 -3
  34. package/cjs/rules/relay-edge-types.js +1 -1
  35. package/cjs/rules/relay-page-info.d.ts +2 -2
  36. package/cjs/rules/require-deprecation-date.d.ts +3 -3
  37. package/cjs/rules/require-deprecation-reason.d.ts +2 -2
  38. package/cjs/rules/require-description.d.ts +3 -3
  39. package/cjs/rules/require-description.js +1 -1
  40. package/cjs/rules/require-field-of-type-query-in-mutation-result.d.ts +2 -2
  41. package/cjs/rules/require-import-fragment.d.ts +2 -2
  42. package/cjs/rules/require-import-fragment.js +4 -8
  43. package/cjs/rules/require-nullable-fields-with-oneof.d.ts +2 -2
  44. package/cjs/rules/require-nullable-result-in-root.d.ts +2 -2
  45. package/cjs/rules/require-selections.d.ts +3 -3
  46. package/cjs/rules/require-selections.js +1 -1
  47. package/cjs/rules/require-type-pattern-with-oneof.d.ts +2 -2
  48. package/cjs/rules/selection-set-depth.d.ts +3 -3
  49. package/cjs/rules/strict-id-in-types.d.ts +3 -3
  50. package/cjs/rules/unique-enum-value-names.d.ts +2 -2
  51. package/cjs/rules/unique-fragment-name.d.ts +1 -1
  52. package/cjs/rules/unique-operation-name.d.ts +2 -2
  53. package/cjs/schema.d.ts +1 -1
  54. package/cjs/siblings.d.ts +2 -2
  55. package/cjs/types.d.ts +4 -3
  56. package/cjs/utils.d.ts +3 -3
  57. package/esm/cache.js +1 -1
  58. package/esm/configs/index.js +1 -1
  59. package/esm/configs/operations-all.js +1 -1
  60. package/esm/configs/operations-recommended.js +1 -1
  61. package/esm/configs/schema-all.js +1 -1
  62. package/esm/configs/schema-recommended.js +1 -1
  63. package/esm/configs/schema-relay.js +1 -1
  64. package/esm/documents.d.mts +1 -1
  65. package/esm/documents.js +1 -1
  66. package/esm/estree-converter/converter.js +1 -1
  67. package/esm/estree-converter/types.d.mts +1 -1
  68. package/esm/estree-converter/utils.js +1 -1
  69. package/esm/flat-configs.d.mts +2 -2
  70. package/esm/flat-configs.js +1 -1
  71. package/esm/graphql-config.d.mts +1 -1
  72. package/esm/graphql-config.js +2 -2
  73. package/esm/index.d.mts +2 -4
  74. package/esm/index.js +1 -1
  75. package/esm/parser.d.mts +2 -2
  76. package/esm/parser.js +3 -3
  77. package/esm/processor.d.mts +1 -1
  78. package/esm/processor.js +1 -1
  79. package/esm/rules/alphabetize.d.mts +3 -3
  80. package/esm/rules/alphabetize.js +1 -1
  81. package/esm/rules/description-style.d.mts +3 -3
  82. package/esm/rules/description-style.js +1 -1
  83. package/esm/rules/graphql-js-validation.d.mts +2 -2
  84. package/esm/rules/graphql-js-validation.js +1 -1
  85. package/esm/rules/index.d.mts +17 -19
  86. package/esm/rules/index.js +2 -2
  87. package/esm/rules/input-name.d.mts +3 -3
  88. package/esm/rules/input-name.js +1 -1
  89. package/esm/rules/lone-executable-definition.d.mts +3 -3
  90. package/esm/rules/lone-executable-definition.js +1 -1
  91. package/esm/rules/match-document-filename.d.mts +3 -3
  92. package/esm/rules/match-document-filename.js +1 -1
  93. package/esm/rules/naming-convention.d.mts +3 -3
  94. package/esm/rules/naming-convention.js +1 -1
  95. package/esm/rules/no-anonymous-operations.d.mts +2 -2
  96. package/esm/rules/no-anonymous-operations.js +1 -1
  97. package/esm/rules/no-deprecated.d.mts +2 -2
  98. package/esm/rules/no-deprecated.js +1 -1
  99. package/esm/rules/no-duplicate-fields.d.mts +2 -2
  100. package/esm/rules/no-duplicate-fields.js +1 -1
  101. package/esm/rules/no-hashtag-description.d.mts +2 -2
  102. package/esm/rules/no-hashtag-description.js +1 -1
  103. package/esm/rules/no-one-place-fragments.d.mts +2 -2
  104. package/esm/rules/no-one-place-fragments.js +1 -1
  105. package/esm/rules/no-root-type.d.mts +3 -3
  106. package/esm/rules/no-root-type.js +1 -1
  107. package/esm/rules/no-scalar-result-type-on-mutation.d.mts +2 -2
  108. package/esm/rules/no-scalar-result-type-on-mutation.js +1 -1
  109. package/esm/rules/no-typename-prefix.d.mts +2 -2
  110. package/esm/rules/no-typename-prefix.js +1 -1
  111. package/esm/rules/no-unreachable-types.d.mts +2 -2
  112. package/esm/rules/no-unreachable-types.js +2 -3
  113. package/esm/rules/no-unused-fields.d.mts +2 -2
  114. package/esm/rules/no-unused-fields.js +1 -1
  115. package/esm/rules/relay-arguments.d.mts +3 -3
  116. package/esm/rules/relay-arguments.js +1 -1
  117. package/esm/rules/relay-connection-types.d.mts +2 -2
  118. package/esm/rules/relay-connection-types.js +1 -1
  119. package/esm/rules/relay-edge-types.d.mts +3 -3
  120. package/esm/rules/relay-edge-types.js +2 -2
  121. package/esm/rules/relay-page-info.d.mts +2 -2
  122. package/esm/rules/relay-page-info.js +1 -1
  123. package/esm/rules/require-deprecation-date.d.mts +3 -3
  124. package/esm/rules/require-deprecation-date.js +1 -1
  125. package/esm/rules/require-deprecation-reason.d.mts +2 -2
  126. package/esm/rules/require-deprecation-reason.js +1 -1
  127. package/esm/rules/require-description.d.mts +3 -3
  128. package/esm/rules/require-description.js +2 -2
  129. package/esm/rules/require-field-of-type-query-in-mutation-result.d.mts +2 -2
  130. package/esm/rules/require-field-of-type-query-in-mutation-result.js +1 -1
  131. package/esm/rules/require-import-fragment.d.mts +2 -2
  132. package/esm/rules/require-import-fragment.js +5 -9
  133. package/esm/rules/require-nullable-fields-with-oneof.d.mts +2 -2
  134. package/esm/rules/require-nullable-fields-with-oneof.js +1 -1
  135. package/esm/rules/require-nullable-result-in-root.d.mts +2 -2
  136. package/esm/rules/require-nullable-result-in-root.js +1 -1
  137. package/esm/rules/require-selections.d.mts +3 -3
  138. package/esm/rules/require-selections.js +2 -2
  139. package/esm/rules/require-type-pattern-with-oneof.d.mts +2 -2
  140. package/esm/rules/require-type-pattern-with-oneof.js +1 -1
  141. package/esm/rules/selection-set-depth.d.mts +3 -3
  142. package/esm/rules/selection-set-depth.js +1 -1
  143. package/esm/rules/strict-id-in-types.d.mts +3 -3
  144. package/esm/rules/strict-id-in-types.js +1 -1
  145. package/esm/rules/unique-enum-value-names.d.mts +2 -2
  146. package/esm/rules/unique-enum-value-names.js +1 -1
  147. package/esm/rules/unique-fragment-name.d.mts +1 -1
  148. package/esm/rules/unique-fragment-name.js +1 -1
  149. package/esm/rules/unique-operation-name.d.mts +2 -2
  150. package/esm/rules/unique-operation-name.js +1 -1
  151. package/esm/schema.d.mts +1 -1
  152. package/esm/schema.js +1 -1
  153. package/esm/siblings.d.mts +2 -2
  154. package/esm/siblings.js +1 -1
  155. package/esm/types.d.mts +4 -3
  156. package/esm/utils.d.mts +3 -3
  157. package/esm/utils.js +1 -1
  158. package/index.browser.mjs +721 -726
  159. package/package.json +5 -5
  160. /package/esm/{chunk-U3TKCM4X.js → chunk-UIAXBAMD.js} +0 -0
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { isObjectType } from "graphql";
3
3
  import { getTypeName, requireGraphQLSchemaFromContext } from "../utils.js";
4
4
  const RULE_ID = "require-field-of-type-query-in-mutation-result", rule = {
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import path from "node:path";
3
3
  import { requireSiblingsOperations } from "../utils.js";
4
4
  const RULE_ID = "require-import-fragment", SUGGESTION_ID = "add-import-expression", rule = {
@@ -82,21 +82,17 @@ const RULE_ID = "require-import-fragment", SUGGESTION_ID = "add-import-expressio
82
82
  for (const comment of comments) {
83
83
  if (comment.type !== "Line" || !new RegExp(
84
84
  `^\\s*import\\s+(${fragmentName}\\s+from\\s+)?['"]`
85
- ).test(comment.value))
86
- continue;
85
+ ).test(comment.value)) continue;
87
86
  const extractedImportPath = comment.value.match(/(["'])((?:\1|.)*?)\1/)?.[2];
88
- if (!extractedImportPath)
89
- continue;
87
+ if (!extractedImportPath) continue;
90
88
  const importPath = path.join(path.dirname(filePath), extractedImportPath);
91
89
  if (fragmentsFromSiblings.some(
92
90
  (source) => source.filePath === importPath
93
- ))
94
- return;
91
+ )) return;
95
92
  }
96
93
  if (fragmentsFromSiblings.some(
97
94
  (source) => source.filePath === filePath
98
- ))
99
- return;
95
+ )) return;
100
96
  const suggestedFilePaths = fragmentsFromSiblings.length ? fragmentsFromSiblings.map((o) => path.relative(path.dirname(filePath), o.filePath)) : ["CHANGE_ME.graphql"];
101
97
  context.report({
102
98
  node,
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import { getNodeName } from "../utils.js";
4
4
  const RULE_ID = "require-nullable-fields-with-oneof", rule = {
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import { getNodeName, requireGraphQLSchemaFromContext, truthy } from "../utils.js";
4
4
  const RULE_ID = "require-nullable-result-in-root", rule = {
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.mjs';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly definitions: {
@@ -42,4 +42,4 @@ declare const schema: {
42
42
  type RuleOptions = FromSchema<typeof schema>;
43
43
  declare const rule: GraphQLESLintRule<RuleOptions, true>;
44
44
 
45
- export { RuleOptions, rule };
45
+ export { type RuleOptions, rule };
@@ -1,5 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
2
- import { asArray } from "@graphql-tools/utils";
1
+ import "../chunk-UIAXBAMD.js";
3
2
  import {
4
3
  GraphQLInterfaceType,
5
4
  GraphQLObjectType,
@@ -9,6 +8,7 @@ import {
9
8
  visit,
10
9
  visitWithTypeInfo
11
10
  } from "graphql";
11
+ import { asArray } from "@graphql-tools/utils";
12
12
  import { getBaseType } from "../estree-converter/index.js";
13
13
  import {
14
14
  ARRAY_DEFAULT_OPTIONS,
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { displayNodeName } from "../utils.js";
3
3
  const RULE_ID = "require-type-pattern-with-oneof", rule = {
4
4
  meta: {
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.mjs';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -34,4 +34,4 @@ declare const schema: {
34
34
  type RuleOptions = FromSchema<typeof schema>;
35
35
  declare const rule: GraphQLESLintRule<RuleOptions>;
36
36
 
37
- export { RuleOptions, rule };
37
+ export { type RuleOptions, rule };
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import depthLimit from "graphql-depth-limit";
4
4
  import { ARRAY_DEFAULT_OPTIONS, logger, requireSiblingsOperations } from "../utils.js";
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.mjs';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -63,4 +63,4 @@ declare const schema: {
63
63
  type RuleOptions = FromSchema<typeof schema>;
64
64
  declare const rule: GraphQLESLintRule<RuleOptions>;
65
65
 
66
- export { RuleOptions, rule };
66
+ export { type RuleOptions, rule };
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import {
4
4
  ARRAY_DEFAULT_OPTIONS,
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import { getNodeName } from "../utils.js";
4
4
  const rule = {
@@ -3,10 +3,10 @@ import { GraphQLESTreeNode } from '../estree-converter/types.mjs';
3
3
  import { GraphQLESLintRuleContext, GraphQLESLintRule } from '../types.mjs';
4
4
  import 'eslint';
5
5
  import 'estree';
6
+ import 'graphql-config';
6
7
  import 'json-schema-to-ts';
7
8
  import '../siblings.mjs';
8
9
  import '@graphql-tools/utils';
9
- import 'graphql-config';
10
10
 
11
11
  declare const checkNode: (context: GraphQLESLintRuleContext, node: GraphQLESTreeNode<ExecutableDefinitionNode>, ruleId: string) => void;
12
12
  declare const rule: GraphQLESLintRule;
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { relative } from "node:path";
3
3
  import { Kind } from "graphql";
4
4
  import { CWD, normalizePath, requireSiblingsOperations, VIRTUAL_DOCUMENT_REGEX } from "../utils.js";
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.mjs';
2
2
  import 'eslint';
3
3
  import 'estree';
4
4
  import 'graphql';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.mjs';
6
8
  import '../siblings.mjs';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.mjs';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -1,4 +1,4 @@
1
- import "../chunk-U3TKCM4X.js";
1
+ import "../chunk-UIAXBAMD.js";
2
2
  import { checkNode } from "./unique-fragment-name.js";
3
3
  const RULE_ID = "unique-operation-name", rule = {
4
4
  meta: {
package/esm/schema.d.mts CHANGED
@@ -4,9 +4,9 @@ import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
6
  import 'json-schema-to-ts';
7
+ import './estree-converter/types.mjs';
7
8
  import './siblings.mjs';
8
9
  import '@graphql-tools/utils';
9
- import './estree-converter/types.mjs';
10
10
 
11
11
  declare function getSchema(project: GraphQLProjectConfig): Schema;
12
12
 
package/esm/schema.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-U3TKCM4X.js";
1
+ import "./chunk-UIAXBAMD.js";
2
2
  import debugFactory from "debug";
3
3
  import fg from "fast-glob";
4
4
  import { GraphQLSchema } from "graphql";
@@ -1,5 +1,5 @@
1
- import { Source } from '@graphql-tools/utils';
2
1
  import { FragmentDefinitionNode, OperationDefinitionNode, SelectionSetNode, OperationTypeNode } from 'graphql';
2
+ import { Source } from '@graphql-tools/utils';
3
3
 
4
4
  type FragmentSource = {
5
5
  filePath: string;
@@ -21,4 +21,4 @@ type SiblingOperations = {
21
21
  };
22
22
  declare function getSiblings(documents: Source[]): SiblingOperations;
23
23
 
24
- export { FragmentSource, OperationSource, SiblingOperations, getSiblings };
24
+ export { type FragmentSource, type OperationSource, type SiblingOperations, getSiblings };
package/esm/siblings.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-U3TKCM4X.js";
1
+ import "./chunk-UIAXBAMD.js";
2
2
  import {
3
3
  Kind,
4
4
  visit
package/esm/types.d.mts CHANGED
@@ -1,14 +1,15 @@
1
1
  import { Linter, Rule, AST } from 'eslint';
2
2
  import * as ESTree from 'estree';
3
3
  import { GraphQLSchema, ASTKindToNode } from 'graphql';
4
+ import { IGraphQLConfig } from 'graphql-config';
4
5
  import { JSONSchema } from 'json-schema-to-ts';
5
- import { SiblingOperations } from './siblings.mjs';
6
6
  import { GraphQLESTreeNode } from './estree-converter/types.mjs';
7
- import { IGraphQLConfig } from 'graphql-config';
7
+ import { SiblingOperations } from './siblings.mjs';
8
8
  import '@graphql-tools/utils';
9
9
 
10
10
  type Schema = GraphQLSchema | null;
11
11
  type Pointer = string | string[];
12
+
12
13
  interface ParserOptions {
13
14
  graphQLConfig?: IGraphQLConfig;
14
15
  filePath: string;
@@ -72,4 +73,4 @@ type OmitRecursively<T extends object, K extends PropertyKey> = Omit<{
72
73
  }, K>;
73
74
  type ConfigName = 'operations-all' | 'operations-recommended' | 'schema-all' | 'schema-recommended' | 'schema-relay';
74
75
 
75
- export { CategoryType, ConfigName, GraphQLESLintParseResult, GraphQLESLintRule, GraphQLESLintRuleContext, GraphQLESLintRuleListener, OmitRecursively, ParserOptions, ParserServices, Pointer, ReportDescriptor, RuleDocsInfo, Schema, ValueOf };
76
+ export { type CategoryType, type ConfigName, type GraphQLESLintParseResult, type GraphQLESLintRule, type GraphQLESLintRuleContext, type GraphQLESLintRuleListener, GraphQLESTreeNode, type OmitRecursively, type ParserOptions, type ParserServices, type Pointer, type ReportDescriptor, type RuleDocsInfo, type Schema, type ValueOf };
package/esm/utils.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { AST } from 'eslint';
2
2
  import { Position } from 'estree';
3
3
  import { GraphQLSchema, ASTNode, Kind } from 'graphql';
4
+ import { GraphQLESTreeNode } from './estree-converter/types.mjs';
4
5
  import { SiblingOperations } from './siblings.mjs';
5
6
  import { GraphQLESLintRuleContext } from './types.mjs';
6
- import { GraphQLESTreeNode } from './estree-converter/types.mjs';
7
7
  import '@graphql-tools/utils';
8
- import 'json-schema-to-ts';
9
8
  import 'graphql-config';
9
+ import 'json-schema-to-ts';
10
10
 
11
11
  declare function requireSiblingsOperations(ruleId: string, context: GraphQLESLintRuleContext): SiblingOperations | never;
12
12
  declare function requireGraphQLSchemaFromContext(ruleId: string, context: GraphQLESLintRuleContext): GraphQLSchema | never;
@@ -42,4 +42,4 @@ declare function truthy<T>(value: T): value is Truthy<T>;
42
42
  declare function displayNodeName(node: GraphQLESTreeNode<ASTNode>): string;
43
43
  declare function getNodeName(node: GraphQLESTreeNode<ASTNode>): string;
44
44
 
45
- export { ARRAY_DEFAULT_OPTIONS, CWD, CaseStyle, REPORT_ON_FIRST_CHARACTER, TYPES_KINDS, VIRTUAL_DOCUMENT_REGEX, camelCase, convertCase, displayNodeName, englishJoinWords, getLocation, getNodeName, getTypeName, logger, normalizePath, pascalCase, requireGraphQLSchemaFromContext, requireSiblingsOperations, truthy };
45
+ export { ARRAY_DEFAULT_OPTIONS, CWD, type CaseStyle, REPORT_ON_FIRST_CHARACTER, TYPES_KINDS, VIRTUAL_DOCUMENT_REGEX, camelCase, convertCase, displayNodeName, englishJoinWords, getLocation, getNodeName, getTypeName, logger, normalizePath, pascalCase, requireGraphQLSchemaFromContext, requireSiblingsOperations, truthy };
package/esm/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-U3TKCM4X.js";
1
+ import "./chunk-UIAXBAMD.js";
2
2
  import { Kind } from "graphql";
3
3
  import lowerCase from "lodash.lowercase";
4
4
  function requireSiblingsOperations(ruleId, context) {