@graphql-eslint/eslint-plugin 4.0.0-alpha.0 → 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 -3
  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 +9 -10
  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 -3
  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 +4 -5
  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
package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- [![GraphQL Conf 2023](/GraphQLConf-2023-Banner.png)](https://graphql.org/conf/)
2
-
3
1
  # GraphQL-ESLint
4
2
 
5
3
  [![npm version](https://badge.fury.io/js/%40graphql-eslint%2Feslint-plugin.svg)](https://badge.fury.io/js/%40graphql-eslint%2Feslint-plugin)
@@ -1,5 +1,5 @@
1
- import { Source } from '@graphql-tools/utils';
2
1
  import { GraphQLProjectConfig } from 'graphql-config';
2
+ import { Source } from '@graphql-tools/utils';
3
3
 
4
4
  declare const getDocuments: (project: GraphQLProjectConfig) => Source[];
5
5
 
@@ -39,4 +39,4 @@ type GraphQLESTreeNode<T, W extends boolean = false> = T extends ASTNode ? {
39
39
  parent: null;
40
40
  } : T;
41
41
 
42
- export { GraphQLESTreeNode, TypeInformation };
42
+ export type { GraphQLESTreeNode, TypeInformation };
@@ -3,11 +3,11 @@ import './types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
6
7
  import 'json-schema-to-ts';
8
+ import './estree-converter/types.js';
7
9
  import './siblings.js';
8
10
  import '@graphql-tools/utils';
9
- import './estree-converter/types.js';
10
- import 'graphql-config';
11
11
 
12
12
  declare const flatConfigs: {
13
13
  'operations-all': {
@@ -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.js';
7
8
  import './siblings.js';
8
9
  import '@graphql-tools/utils';
9
- import './estree-converter/types.js';
10
10
 
11
11
  declare function loadOnDiskGraphQLConfig(filePath: string): GraphQLConfig;
12
12
  declare function loadGraphQLConfig({ graphQLConfig: config, filePath, }: ParserOptions): GraphQLConfig;
@@ -27,7 +27,7 @@ __export(graphql_config_exports, {
27
27
  loadOnDiskGraphQLConfig: () => loadOnDiskGraphQLConfig
28
28
  });
29
29
  module.exports = __toCommonJS(graphql_config_exports);
30
- var import_node_path = __toESM(require("node:path")), import_code_file_loader = require("@graphql-tools/code-file-loader"), import_debug = __toESM(require("debug")), import_graphql_config = require("graphql-config");
30
+ var import_node_path = __toESM(require("node:path")), import_debug = __toESM(require("debug")), import_graphql_config = require("graphql-config"), import_code_file_loader = require("@graphql-tools/code-file-loader");
31
31
  const debug = (0, import_debug.default)("graphql-eslint:graphql-config");
32
32
  let graphQLConfig;
33
33
  function loadOnDiskGraphQLConfig(filePath) {
package/cjs/index.d.ts CHANGED
@@ -6,15 +6,14 @@ export { CategoryType, ConfigName, GraphQLESLintParseResult, GraphQLESLintRule,
6
6
  export { requireGraphQLSchemaFromContext, requireSiblingsOperations } from './utils.js';
7
7
  export { configs } from './configs/index.js';
8
8
  export { flatConfigs } from './flat-configs.js';
9
+ export { GraphQLESTreeNode } from './estree-converter/types.js';
9
10
  import './rules/require-description.js';
10
11
  import 'graphql';
11
- import 'graphql/language/ast.js';
12
12
  import 'estree';
13
+ import 'graphql-config';
13
14
  import 'json-schema-to-ts';
14
15
  import './siblings.js';
15
16
  import '@graphql-tools/utils';
16
- import './estree-converter/types.js';
17
- import 'graphql-config';
18
17
 
19
18
  declare const processors: {
20
19
  graphql: {
package/cjs/parser.d.ts CHANGED
@@ -2,11 +2,11 @@ import { ParserOptions, GraphQLESLintParseResult } from './types.js';
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.js';
6
8
  import './siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import './estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare function parseForESLint(code: string, options: ParserOptions): GraphQLESLintParseResult;
12
12
 
package/cjs/parser.js CHANGED
@@ -26,7 +26,7 @@ __export(parser_exports, {
26
26
  parseForESLint: () => parseForESLint
27
27
  });
28
28
  module.exports = __toCommonJS(parser_exports);
29
- var import_utils = require("@graphql-tools/utils"), import_debug = __toESM(require("debug")), import_graphql = require("graphql"), import_estree_converter = require("./estree-converter/index.js"), import_graphql_config = require("./graphql-config.js"), import_schema = require("./schema.js"), import_siblings = require("./siblings.js"), import_utils2 = require("./utils.js"), import_documents = require("./documents.js");
29
+ var import_debug = __toESM(require("debug")), import_graphql = require("graphql"), import_utils = require("@graphql-tools/utils"), import_documents = require("./documents.js"), import_estree_converter = require("./estree-converter/index.js"), import_graphql_config2 = require("./graphql-config.js"), import_schema = require("./schema.js"), import_siblings = require("./siblings.js"), import_utils2 = require("./utils.js");
30
30
  const debug = (0, import_debug.default)("graphql-eslint:parser");
31
31
  debug("cwd %o", import_utils2.CWD);
32
32
  const LEGACY_PARSER_OPTIONS_KEYS = [
@@ -51,7 +51,7 @@ function parseForESLint(code, options) {
51
51
  const { filePath } = options, { document } = (0, import_utils.parseGraphQLSDL)(filePath, code, { noLocation: !1 });
52
52
  let project, schema, documents;
53
53
  {
54
- const gqlConfig = (0, import_graphql_config.loadGraphQLConfig)(options), realFilepath = filePath.replace(import_utils2.VIRTUAL_DOCUMENT_REGEX, "");
54
+ const gqlConfig = (0, import_graphql_config2.loadGraphQLConfig)(options), realFilepath = filePath.replace(import_utils2.VIRTUAL_DOCUMENT_REGEX, "");
55
55
  project = gqlConfig.getProjectForFile(realFilepath), documents = (0, import_documents.getDocuments)(project);
56
56
  }
57
57
  try {
@@ -10,4 +10,4 @@ declare const processor: {
10
10
  postprocess(messages: Linter.LintMessage[][], filePath: string): Linter.LintMessage[];
11
11
  };
12
12
 
13
- export { Block, processor };
13
+ export { type Block, processor };
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -45,7 +45,7 @@ declare const schema: {
45
45
  };
46
46
  readonly arguments: {
47
47
  readonly items: {
48
- readonly enum: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[];
48
+ readonly enum: ("FieldDefinition" | "Field" | "DirectiveDefinition" | "Directive")[];
49
49
  };
50
50
  readonly description: "Arguments of fields and directives.";
51
51
  readonly type: "array";
@@ -71,4 +71,4 @@ declare const schema: {
71
71
  type RuleOptions = FromSchema<typeof schema>;
72
72
  declare const rule: GraphQLESLintRule<RuleOptions>;
73
73
 
74
- export { RuleOptions, rule };
74
+ export { type RuleOptions, rule };
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -26,4 +26,4 @@ declare const schema: {
26
26
  type RuleOptions = FromSchema<typeof schema>;
27
27
  declare const rule: GraphQLESLintRule<RuleOptions>;
28
28
 
29
- export { RuleOptions, rule };
29
+ export { type RuleOptions, rule };
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const GRAPHQL_JS_VALIDATIONS: Record<string, GraphQLESLintRule>;
12
12
 
@@ -1,21 +1,20 @@
1
1
  import { RuleOptions } from './require-description.js';
2
2
  import { CaseStyle } from '../utils.js';
3
- import * as graphql_language_ast_js from 'graphql/language/ast.js';
3
+ import * as graphql from 'graphql';
4
4
  import { GraphQLESLintRule } from '../types.js';
5
- import 'graphql';
6
5
  import 'eslint';
7
6
  import 'estree';
7
+ import '../estree-converter/types.js';
8
8
  import '../siblings.js';
9
9
  import '@graphql-tools/utils';
10
- import '../estree-converter/types.js';
11
- import 'json-schema-to-ts';
12
10
  import 'graphql-config';
11
+ import 'json-schema-to-ts';
13
12
 
14
13
  declare const rules: {
15
14
  alphabetize: GraphQLESLintRule<{
16
15
  definitions?: boolean | undefined;
17
16
  selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
18
- arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
17
+ arguments?: ("FieldDefinition" | "Field" | "DirectiveDefinition" | "Directive")[] | undefined;
19
18
  values?: boolean | undefined;
20
19
  fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
21
20
  variables?: boolean | undefined;
@@ -31,10 +30,10 @@ declare const rules: {
31
30
  checkMutations?: boolean | undefined;
32
31
  }[]>;
33
32
  'lone-executable-definition': GraphQLESLintRule<{
34
- ignore?: (graphql_language_ast_js.OperationTypeNode | "fragment")[] | undefined;
33
+ ignore?: (graphql.OperationTypeNode | "fragment")[] | undefined;
35
34
  }[]>;
36
35
  'match-document-filename': GraphQLESLintRule<{
37
- fragment?: (CaseStyle | "matchDocumentStyle") | {
36
+ query?: (CaseStyle | "matchDocumentStyle") | {
38
37
  style?: (CaseStyle | "matchDocumentStyle") | undefined;
39
38
  suffix?: string | undefined;
40
39
  prefix?: string | undefined;
@@ -49,7 +48,7 @@ declare const rules: {
49
48
  suffix?: string | undefined;
50
49
  prefix?: string | undefined;
51
50
  } | undefined;
52
- query?: (CaseStyle | "matchDocumentStyle") | {
51
+ fragment?: (CaseStyle | "matchDocumentStyle") | {
53
52
  style?: (CaseStyle | "matchDocumentStyle") | undefined;
54
53
  suffix?: string | undefined;
55
54
  prefix?: string | undefined;
@@ -58,8 +57,8 @@ declare const rules: {
58
57
  }[]>;
59
58
  'naming-convention': GraphQLESLintRule<{
60
59
  [x: string]: unknown;
61
- types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
62
- style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
60
+ types?: ("PascalCase" | "camelCase" | "UPPER_CASE" | "snake_case") | {
61
+ style?: ("PascalCase" | "camelCase" | "UPPER_CASE" | "snake_case") | undefined;
63
62
  suffix?: string | undefined;
64
63
  prefix?: string | undefined;
65
64
  forbiddenPrefixes?: string[] | undefined;
@@ -18,7 +18,7 @@ __export(rules_exports, {
18
18
  rules: () => rules
19
19
  });
20
20
  module.exports = __toCommonJS(rules_exports);
21
- var import_graphql_js_validation = require("./graphql-js-validation.js"), import_alphabetize = require("./alphabetize.js"), import_description_style = require("./description-style.js"), import_input_name = require("./input-name.js"), import_lone_executable_definition = require("./lone-executable-definition.js"), import_match_document_filename = require("./match-document-filename.js"), import_naming_convention = require("./naming-convention.js"), import_no_anonymous_operations = require("./no-anonymous-operations.js"), import_no_deprecated = require("./no-deprecated.js"), import_no_duplicate_fields = require("./no-duplicate-fields.js"), import_no_hashtag_description = require("./no-hashtag-description.js"), import_no_one_place_fragments = require("./no-one-place-fragments.js"), import_no_root_type = require("./no-root-type.js"), import_no_scalar_result_type_on_mutation = require("./no-scalar-result-type-on-mutation.js"), import_no_typename_prefix = require("./no-typename-prefix.js"), import_no_unreachable_types = require("./no-unreachable-types.js"), import_no_unused_fields = require("./no-unused-fields.js"), import_relay_arguments = require("./relay-arguments.js"), import_relay_connection_types = require("./relay-connection-types.js"), import_relay_edge_types = require("./relay-edge-types.js"), import_relay_page_info = require("./relay-page-info.js"), import_require_deprecation_date = require("./require-deprecation-date.js"), import_require_deprecation_reason = require("./require-deprecation-reason.js"), import_require_description = require("./require-description.js"), import_require_field_of_type_query_in_mutation_result = require("./require-field-of-type-query-in-mutation-result.js"), import_require_import_fragment = require("./require-import-fragment.js"), import_require_nullable_fields_with_oneof = require("./require-nullable-fields-with-oneof.js"), import_require_nullable_result_in_root = require("./require-nullable-result-in-root.js"), import_require_selections = require("./require-selections.js"), import_require_type_pattern_with_oneof = require("./require-type-pattern-with-oneof.js"), import_selection_set_depth = require("./selection-set-depth.js"), import_strict_id_in_types = require("./strict-id-in-types.js"), import_unique_enum_value_names = require("./unique-enum-value-names.js"), import_unique_fragment_name = require("./unique-fragment-name.js"), import_unique_operation_name = require("./unique-operation-name.js");
21
+ var import_alphabetize = require("./alphabetize.js"), import_description_style = require("./description-style.js"), import_graphql_js_validation = require("./graphql-js-validation.js"), import_input_name = require("./input-name.js"), import_lone_executable_definition = require("./lone-executable-definition.js"), import_match_document_filename = require("./match-document-filename.js"), import_naming_convention = require("./naming-convention.js"), import_no_anonymous_operations = require("./no-anonymous-operations.js"), import_no_deprecated = require("./no-deprecated.js"), import_no_duplicate_fields = require("./no-duplicate-fields.js"), import_no_hashtag_description = require("./no-hashtag-description.js"), import_no_one_place_fragments = require("./no-one-place-fragments.js"), import_no_root_type = require("./no-root-type.js"), import_no_scalar_result_type_on_mutation = require("./no-scalar-result-type-on-mutation.js"), import_no_typename_prefix = require("./no-typename-prefix.js"), import_no_unreachable_types = require("./no-unreachable-types.js"), import_no_unused_fields = require("./no-unused-fields.js"), import_relay_arguments = require("./relay-arguments.js"), import_relay_connection_types = require("./relay-connection-types.js"), import_relay_edge_types = require("./relay-edge-types.js"), import_relay_page_info = require("./relay-page-info.js"), import_require_deprecation_date = require("./require-deprecation-date.js"), import_require_deprecation_reason = require("./require-deprecation-reason.js"), import_require_description = require("./require-description.js"), import_require_field_of_type_query_in_mutation_result = require("./require-field-of-type-query-in-mutation-result.js"), import_require_import_fragment = require("./require-import-fragment.js"), import_require_nullable_fields_with_oneof = require("./require-nullable-fields-with-oneof.js"), import_require_nullable_result_in_root = require("./require-nullable-result-in-root.js"), import_require_selections = require("./require-selections.js"), import_require_type_pattern_with_oneof = require("./require-type-pattern-with-oneof.js"), import_selection_set_depth = require("./selection-set-depth.js"), import_strict_id_in_types = require("./strict-id-in-types.js"), import_unique_enum_value_names = require("./unique-enum-value-names.js"), import_unique_fragment_name = require("./unique-fragment-name.js"), import_unique_operation_name = require("./unique-operation-name.js");
22
22
  const rules = {
23
23
  ...import_graphql_js_validation.GRAPHQL_JS_VALIDATIONS,
24
24
  alphabetize: import_alphabetize.rule,
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -41,4 +41,4 @@ declare const schema: {
41
41
  type RuleOptions = FromSchema<typeof schema>;
42
42
  declare const rule: GraphQLESLintRule<RuleOptions>;
43
43
 
44
- export { RuleOptions, rule };
44
+ export { type RuleOptions, rule };
@@ -3,10 +3,10 @@ import { FromSchema } from 'json-schema-to-ts';
3
3
  import { GraphQLESLintRule } from '../types.js';
4
4
  import 'eslint';
5
5
  import 'estree';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -32,4 +32,4 @@ declare const schema: {
32
32
  type RuleOptions = FromSchema<typeof schema>;
33
33
  declare const rule: GraphQLESLintRule<RuleOptions>;
34
34
 
35
- export { RuleOptions, rule };
35
+ export { type RuleOptions, rule };
@@ -4,10 +4,10 @@ import { CaseStyle as CaseStyle$1 } from '../utils.js';
4
4
  import 'eslint';
5
5
  import 'estree';
6
6
  import 'graphql';
7
+ import 'graphql-config';
8
+ import '../estree-converter/types.js';
7
9
  import '../siblings.js';
8
10
  import '@graphql-tools/utils';
9
- import '../estree-converter/types.js';
10
- import 'graphql-config';
11
11
 
12
12
  type CaseStyle = CaseStyle$1 | 'matchDocumentStyle';
13
13
  declare const schema: {
@@ -78,4 +78,4 @@ declare const schema: {
78
78
  type RuleOptions = FromSchema<typeof schema>;
79
79
  declare const rule: GraphQLESLintRule<RuleOptions>;
80
80
 
81
- export { RuleOptions, rule };
81
+ export { type RuleOptions, rule };
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  type AllowedStyle = 'camelCase' | 'PascalCase' | 'snake_case' | 'UPPER_CASE';
12
12
  declare const schema: {
@@ -105,4 +105,4 @@ declare const schema: {
105
105
  type RuleOptions = FromSchema<typeof schema>;
106
106
  declare const rule: GraphQLESLintRule<RuleOptions>;
107
107
 
108
- export { RuleOptions, rule };
108
+ export { type RuleOptions, rule };
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule<[], true>;
12
12
 
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const RULE_ID = "HASHTAG_COMMENT";
12
12
  declare const rule: GraphQLESLintRule;
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -31,4 +31,4 @@ declare const schema: {
31
31
  type RuleOptions = FromSchema<typeof schema>;
32
32
  declare const rule: GraphQLESLintRule<RuleOptions>;
33
33
 
34
- export { RuleOptions, rule };
34
+ export { type RuleOptions, rule };
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -66,8 +66,7 @@ function getReachableTypes(schema) {
66
66
  const { objects, interfaces } = schema.getImplementations(type);
67
67
  for (const { astNode } of [...objects, ...interfaces])
68
68
  (0, import_graphql.visit)(astNode, visitor);
69
- } else
70
- type?.astNode && (0, import_graphql.visit)(type.astNode, visitor);
69
+ } else type?.astNode && (0, import_graphql.visit)(type.astNode, visitor);
71
70
  }, visitor = {
72
71
  InterfaceTypeDefinition: collect,
73
72
  ObjectTypeDefinition: collect,
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -27,4 +27,4 @@ declare const schema: {
27
27
  type RuleOptions = FromSchema<typeof schema>;
28
28
  declare const rule: GraphQLESLintRule<RuleOptions, true>;
29
29
 
30
- export { RuleOptions, rule };
30
+ export { type RuleOptions, rule };
@@ -2,11 +2,11 @@ import { Kind } from 'graphql';
2
2
  import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const NON_OBJECT_TYPES: Kind[];
12
12
  declare const rule: GraphQLESLintRule;
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -37,4 +37,4 @@ declare const schema: {
37
37
  type RuleOptions = FromSchema<typeof schema>;
38
38
  declare const rule: GraphQLESLintRule<RuleOptions, true>;
39
39
 
40
- export { RuleOptions, rule };
40
+ export { type RuleOptions, rule };
@@ -18,7 +18,7 @@ __export(relay_edge_types_exports, {
18
18
  rule: () => rule
19
19
  });
20
20
  module.exports = __toCommonJS(relay_edge_types_exports);
21
- var import_utils = require("@graphql-tools/utils"), import_graphql = require("graphql"), import_utils2 = require("../utils.js");
21
+ var import_graphql = require("graphql"), import_utils = require("@graphql-tools/utils"), import_utils2 = require("../utils.js");
22
22
  const RULE_ID = "relay-edge-types", MESSAGE_MUST_BE_OBJECT_TYPE = "MESSAGE_MUST_BE_OBJECT_TYPE", MESSAGE_MISSING_EDGE_SUFFIX = "MESSAGE_MISSING_EDGE_SUFFIX", MESSAGE_LIST_TYPE_ONLY_EDGE_TYPE = "MESSAGE_LIST_TYPE_ONLY_EDGE_TYPE", MESSAGE_SHOULD_IMPLEMENTS_NODE = "MESSAGE_SHOULD_IMPLEMENTS_NODE";
23
23
  let edgeTypesCache;
24
24
  function getEdgeTypes(schema2) {
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -3,10 +3,10 @@ import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
5
  import 'graphql';
6
+ import 'graphql-config';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const schema: {
12
12
  readonly type: "array";
@@ -24,4 +24,4 @@ declare const schema: {
24
24
  type RuleOptions = FromSchema<typeof schema>;
25
25
  declare const rule: GraphQLESLintRule<RuleOptions>;
26
26
 
27
- export { RuleOptions, rule };
27
+ export { type RuleOptions, rule };
@@ -2,11 +2,11 @@ import { GraphQLESLintRule } from '../types.js';
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.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const rule: GraphQLESLintRule;
12
12
 
@@ -2,11 +2,11 @@ import { Kind } from 'graphql';
2
2
  import { GraphQLESLintRule } from '../types.js';
3
3
  import 'eslint';
4
4
  import 'estree';
5
+ import 'graphql-config';
5
6
  import 'json-schema-to-ts';
7
+ import '../estree-converter/types.js';
6
8
  import '../siblings.js';
7
9
  import '@graphql-tools/utils';
8
- import '../estree-converter/types.js';
9
- import 'graphql-config';
10
10
 
11
11
  declare const RULE_ID = "require-description";
12
12
  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];
@@ -21,4 +21,4 @@ type RuleOptions = [
21
21
  ];
22
22
  declare const rule: GraphQLESLintRule<RuleOptions>;
23
23
 
24
- export { RULE_ID, RuleOptions, rule };
24
+ export { RULE_ID, type RuleOptions, rule };