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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/cjs/cache.js +1 -2
  2. package/cjs/configs/index.d.cts +427 -10
  3. package/cjs/configs/index.js +1 -2
  4. package/cjs/configs/operations-all.d.cts +8 -8
  5. package/cjs/configs/operations-all.js +30 -33
  6. package/cjs/configs/operations-recommended.d.cts +35 -35
  7. package/cjs/configs/operations-recommended.js +56 -59
  8. package/cjs/configs/schema-all.d.cts +12 -12
  9. package/cjs/configs/schema-all.js +26 -29
  10. package/cjs/configs/schema-recommended.d.cts +23 -23
  11. package/cjs/configs/schema-recommended.js +70 -73
  12. package/cjs/configs/schema-relay.d.cts +5 -5
  13. package/cjs/configs/schema-relay.js +14 -17
  14. package/cjs/documents.js +1 -2
  15. package/cjs/estree-converter/converter.js +1 -2
  16. package/cjs/estree-converter/utils.js +1 -2
  17. package/cjs/graphql-config.js +1 -2
  18. package/cjs/index.d.cts +433 -15
  19. package/cjs/index.js +1 -2
  20. package/cjs/meta.js +1 -2
  21. package/cjs/parser.js +1 -2
  22. package/cjs/processor.js +1 -2
  23. package/cjs/rules/alphabetize/index.js +1 -2
  24. package/cjs/rules/description-style/index.js +1 -2
  25. package/cjs/rules/graphql-js-validation.js +1 -2
  26. package/cjs/rules/index.d.cts +4 -4
  27. package/cjs/rules/index.js +1 -2
  28. package/cjs/rules/input-name/index.js +1 -2
  29. package/cjs/rules/lone-executable-definition/index.js +1 -2
  30. package/cjs/rules/match-document-filename/index.js +1 -2
  31. package/cjs/rules/naming-convention/index.js +1 -2
  32. package/cjs/rules/no-anonymous-operations/index.js +1 -2
  33. package/cjs/rules/no-deprecated/index.js +1 -2
  34. package/cjs/rules/no-duplicate-fields/index.js +1 -2
  35. package/cjs/rules/no-hashtag-description/index.js +1 -2
  36. package/cjs/rules/no-one-place-fragments/index.js +1 -2
  37. package/cjs/rules/no-root-type/index.js +1 -2
  38. package/cjs/rules/no-scalar-result-type-on-mutation/index.js +1 -2
  39. package/cjs/rules/no-typename-prefix/index.js +1 -2
  40. package/cjs/rules/no-unreachable-types/index.js +1 -2
  41. package/cjs/rules/no-unused-fields/index.js +1 -2
  42. package/cjs/rules/relay-arguments/index.js +1 -2
  43. package/cjs/rules/relay-connection-types/index.js +1 -2
  44. package/cjs/rules/relay-edge-types/index.js +1 -2
  45. package/cjs/rules/relay-page-info/index.js +1 -2
  46. package/cjs/rules/require-deprecation-date/index.js +1 -2
  47. package/cjs/rules/require-deprecation-reason/index.js +1 -2
  48. package/cjs/rules/require-description/index.js +1 -2
  49. package/cjs/rules/require-field-of-type-query-in-mutation-result/index.js +1 -2
  50. package/cjs/rules/require-import-fragment/index.js +1 -2
  51. package/cjs/rules/require-nullable-fields-with-oneof/index.js +1 -2
  52. package/cjs/rules/require-nullable-result-in-root/index.js +1 -2
  53. package/cjs/rules/require-selections/index.js +1 -2
  54. package/cjs/rules/require-type-pattern-with-oneof/index.js +1 -2
  55. package/cjs/rules/selection-set-depth/index.js +1 -2
  56. package/cjs/rules/strict-id-in-types/index.js +1 -2
  57. package/cjs/rules/unique-enum-value-names/index.js +1 -2
  58. package/cjs/rules/unique-fragment-name/index.js +1 -2
  59. package/cjs/rules/unique-operation-name/index.js +1 -2
  60. package/cjs/schema.js +1 -2
  61. package/cjs/siblings.js +1 -2
  62. package/cjs/utils.js +1 -2
  63. package/esm/cache.js +0 -1
  64. package/esm/configs/index.d.ts +427 -10
  65. package/esm/configs/index.js +0 -1
  66. package/esm/configs/operations-all.d.ts +7 -7
  67. package/esm/configs/operations-all.js +28 -33
  68. package/esm/configs/operations-recommended.d.ts +34 -34
  69. package/esm/configs/operations-recommended.js +54 -59
  70. package/esm/configs/schema-all.d.ts +11 -11
  71. package/esm/configs/schema-all.js +24 -29
  72. package/esm/configs/schema-recommended.d.ts +22 -22
  73. package/esm/configs/schema-recommended.js +68 -73
  74. package/esm/configs/schema-relay.d.ts +4 -4
  75. package/esm/configs/schema-relay.js +12 -17
  76. package/esm/documents.js +0 -1
  77. package/esm/estree-converter/converter.js +0 -1
  78. package/esm/estree-converter/utils.js +0 -1
  79. package/esm/graphql-config.js +0 -1
  80. package/esm/index.d.ts +433 -15
  81. package/esm/index.js +0 -1
  82. package/esm/meta.js +1 -2
  83. package/esm/parser.js +0 -1
  84. package/esm/processor.js +0 -1
  85. package/esm/rules/alphabetize/index.js +0 -1
  86. package/esm/rules/description-style/index.js +0 -1
  87. package/esm/rules/graphql-js-validation.js +0 -1
  88. package/esm/rules/index.d.ts +4 -4
  89. package/esm/rules/index.js +0 -1
  90. package/esm/rules/input-name/index.js +0 -1
  91. package/esm/rules/lone-executable-definition/index.js +0 -1
  92. package/esm/rules/match-document-filename/index.js +0 -1
  93. package/esm/rules/naming-convention/index.js +0 -1
  94. package/esm/rules/no-anonymous-operations/index.js +0 -1
  95. package/esm/rules/no-deprecated/index.js +0 -1
  96. package/esm/rules/no-duplicate-fields/index.js +0 -1
  97. package/esm/rules/no-hashtag-description/index.js +0 -1
  98. package/esm/rules/no-one-place-fragments/index.js +0 -1
  99. package/esm/rules/no-root-type/index.js +0 -1
  100. package/esm/rules/no-scalar-result-type-on-mutation/index.js +0 -1
  101. package/esm/rules/no-typename-prefix/index.js +0 -1
  102. package/esm/rules/no-unreachable-types/index.js +0 -1
  103. package/esm/rules/no-unused-fields/index.js +0 -1
  104. package/esm/rules/relay-arguments/index.js +0 -1
  105. package/esm/rules/relay-connection-types/index.js +0 -1
  106. package/esm/rules/relay-edge-types/index.js +0 -1
  107. package/esm/rules/relay-page-info/index.js +0 -1
  108. package/esm/rules/require-deprecation-date/index.js +0 -1
  109. package/esm/rules/require-deprecation-reason/index.js +0 -1
  110. package/esm/rules/require-description/index.js +0 -1
  111. package/esm/rules/require-field-of-type-query-in-mutation-result/index.js +0 -1
  112. package/esm/rules/require-import-fragment/index.js +0 -1
  113. package/esm/rules/require-nullable-fields-with-oneof/index.js +0 -1
  114. package/esm/rules/require-nullable-result-in-root/index.js +0 -1
  115. package/esm/rules/require-selections/index.js +0 -1
  116. package/esm/rules/require-type-pattern-with-oneof/index.js +0 -1
  117. package/esm/rules/selection-set-depth/index.js +0 -1
  118. package/esm/rules/strict-id-in-types/index.js +0 -1
  119. package/esm/rules/unique-enum-value-names/index.js +0 -1
  120. package/esm/rules/unique-fragment-name/index.js +0 -1
  121. package/esm/rules/unique-operation-name/index.js +0 -1
  122. package/esm/schema.js +0 -1
  123. package/esm/siblings.js +0 -1
  124. package/esm/utils.js +0 -1
  125. package/index.browser.js +203 -251
  126. package/package.json +1 -1
  127. package/cjs/chunk-UIAXBAMD.js +0 -8
  128. package/esm/chunk-UIAXBAMD.js +0 -8
@@ -1,61 +1,56 @@
1
- import {
2
- __commonJS
3
- } from "../chunk-UIAXBAMD.js";
4
- var require_operations_recommended = __commonJS({
5
- "src/configs/operations-recommended.ts"(exports, module) {
6
- module.exports = {
7
- parser: "@graphql-eslint/eslint-plugin",
8
- plugins: ["@graphql-eslint"],
9
- rules: {
10
- "@graphql-eslint/executable-definitions": "error",
11
- "@graphql-eslint/fields-on-correct-type": "error",
12
- "@graphql-eslint/fragments-on-composite-type": "error",
13
- "@graphql-eslint/known-argument-names": "error",
14
- "@graphql-eslint/known-directives": "error",
15
- "@graphql-eslint/known-fragment-names": "error",
16
- "@graphql-eslint/known-type-names": "error",
17
- "@graphql-eslint/lone-anonymous-operation": "error",
18
- "@graphql-eslint/naming-convention": [
19
- "error",
20
- {
21
- VariableDefinition: "camelCase",
22
- OperationDefinition: {
23
- style: "PascalCase",
24
- forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
25
- forbiddenSuffixes: ["Query", "Mutation", "Subscription"]
26
- },
27
- FragmentDefinition: {
28
- style: "PascalCase",
29
- forbiddenPrefixes: ["Fragment"],
30
- forbiddenSuffixes: ["Fragment"]
31
- }
32
- }
33
- ],
34
- "@graphql-eslint/no-anonymous-operations": "error",
35
- "@graphql-eslint/no-deprecated": "error",
36
- "@graphql-eslint/no-duplicate-fields": "error",
37
- "@graphql-eslint/no-fragment-cycles": "error",
38
- "@graphql-eslint/no-undefined-variables": "error",
39
- "@graphql-eslint/no-unused-fragments": "error",
40
- "@graphql-eslint/no-unused-variables": "error",
41
- "@graphql-eslint/one-field-subscriptions": "error",
42
- "@graphql-eslint/overlapping-fields-can-be-merged": "error",
43
- "@graphql-eslint/possible-fragment-spread": "error",
44
- "@graphql-eslint/provided-required-arguments": "error",
45
- "@graphql-eslint/require-selections": "error",
46
- "@graphql-eslint/scalar-leafs": "error",
47
- "@graphql-eslint/selection-set-depth": ["error", { maxDepth: 7 }],
48
- "@graphql-eslint/unique-argument-names": "error",
49
- "@graphql-eslint/unique-directive-names-per-location": "error",
50
- "@graphql-eslint/unique-fragment-name": "error",
51
- "@graphql-eslint/unique-input-field-names": "error",
52
- "@graphql-eslint/unique-operation-name": "error",
53
- "@graphql-eslint/unique-variable-names": "error",
54
- "@graphql-eslint/value-literals-of-correct-type": "error",
55
- "@graphql-eslint/variables-are-input-types": "error",
56
- "@graphql-eslint/variables-in-allowed-position": "error"
1
+ var operations_recommended_default = {
2
+ parser: "@graphql-eslint/eslint-plugin",
3
+ plugins: ["@graphql-eslint"],
4
+ rules: {
5
+ "@graphql-eslint/executable-definitions": "error",
6
+ "@graphql-eslint/fields-on-correct-type": "error",
7
+ "@graphql-eslint/fragments-on-composite-type": "error",
8
+ "@graphql-eslint/known-argument-names": "error",
9
+ "@graphql-eslint/known-directives": "error",
10
+ "@graphql-eslint/known-fragment-names": "error",
11
+ "@graphql-eslint/known-type-names": "error",
12
+ "@graphql-eslint/lone-anonymous-operation": "error",
13
+ "@graphql-eslint/naming-convention": [
14
+ "error",
15
+ {
16
+ VariableDefinition: "camelCase",
17
+ OperationDefinition: {
18
+ style: "PascalCase",
19
+ forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
20
+ forbiddenSuffixes: ["Query", "Mutation", "Subscription"]
21
+ },
22
+ FragmentDefinition: {
23
+ style: "PascalCase",
24
+ forbiddenPrefixes: ["Fragment"],
25
+ forbiddenSuffixes: ["Fragment"]
26
+ }
57
27
  }
58
- };
28
+ ],
29
+ "@graphql-eslint/no-anonymous-operations": "error",
30
+ "@graphql-eslint/no-deprecated": "error",
31
+ "@graphql-eslint/no-duplicate-fields": "error",
32
+ "@graphql-eslint/no-fragment-cycles": "error",
33
+ "@graphql-eslint/no-undefined-variables": "error",
34
+ "@graphql-eslint/no-unused-fragments": "error",
35
+ "@graphql-eslint/no-unused-variables": "error",
36
+ "@graphql-eslint/one-field-subscriptions": "error",
37
+ "@graphql-eslint/overlapping-fields-can-be-merged": "error",
38
+ "@graphql-eslint/possible-fragment-spread": "error",
39
+ "@graphql-eslint/provided-required-arguments": "error",
40
+ "@graphql-eslint/require-selections": "error",
41
+ "@graphql-eslint/scalar-leafs": "error",
42
+ "@graphql-eslint/selection-set-depth": ["error", { maxDepth: 7 }],
43
+ "@graphql-eslint/unique-argument-names": "error",
44
+ "@graphql-eslint/unique-directive-names-per-location": "error",
45
+ "@graphql-eslint/unique-fragment-name": "error",
46
+ "@graphql-eslint/unique-input-field-names": "error",
47
+ "@graphql-eslint/unique-operation-name": "error",
48
+ "@graphql-eslint/unique-variable-names": "error",
49
+ "@graphql-eslint/value-literals-of-correct-type": "error",
50
+ "@graphql-eslint/variables-are-input-types": "error",
51
+ "@graphql-eslint/variables-in-allowed-position": "error"
59
52
  }
60
- });
61
- export default require_operations_recommended();
53
+ };
54
+ export {
55
+ operations_recommended_default as default
56
+ };
@@ -1,23 +1,23 @@
1
1
  declare const _default: {
2
2
  extends: string;
3
3
  rules: {
4
- '@graphql-eslint/alphabetize': (string | {
4
+ '@graphql-eslint/alphabetize': ["error", {
5
5
  definitions: boolean;
6
6
  fields: string[];
7
7
  values: boolean;
8
8
  arguments: string[];
9
9
  groups: string[];
10
- })[];
11
- '@graphql-eslint/input-name': string;
12
- '@graphql-eslint/no-root-type': (string | {
10
+ }];
11
+ '@graphql-eslint/input-name': "error";
12
+ '@graphql-eslint/no-root-type': ["error", {
13
13
  disallow: string[];
14
- })[];
15
- '@graphql-eslint/no-scalar-result-type-on-mutation': string;
16
- '@graphql-eslint/require-deprecation-date': string;
17
- '@graphql-eslint/require-field-of-type-query-in-mutation-result': string;
18
- '@graphql-eslint/require-nullable-fields-with-oneof': string;
19
- '@graphql-eslint/require-nullable-result-in-root': string;
20
- '@graphql-eslint/require-type-pattern-with-oneof': string;
14
+ }];
15
+ '@graphql-eslint/no-scalar-result-type-on-mutation': "error";
16
+ '@graphql-eslint/require-deprecation-date': "error";
17
+ '@graphql-eslint/require-field-of-type-query-in-mutation-result': "error";
18
+ '@graphql-eslint/require-nullable-fields-with-oneof': "error";
19
+ '@graphql-eslint/require-nullable-result-in-root': "error";
20
+ '@graphql-eslint/require-type-pattern-with-oneof': "error";
21
21
  };
22
22
  };
23
23
 
@@ -1,31 +1,26 @@
1
- import {
2
- __commonJS
3
- } from "../chunk-UIAXBAMD.js";
4
- var require_schema_all = __commonJS({
5
- "src/configs/schema-all.ts"(exports, module) {
6
- module.exports = {
7
- extends: "./configs/schema-recommended",
8
- rules: {
9
- "@graphql-eslint/alphabetize": [
10
- "error",
11
- {
12
- definitions: !0,
13
- fields: ["ObjectTypeDefinition", "InterfaceTypeDefinition", "InputObjectTypeDefinition"],
14
- values: !0,
15
- arguments: ["FieldDefinition", "Field", "DirectiveDefinition", "Directive"],
16
- groups: ["id", "*", "createdAt", "updatedAt"]
17
- }
18
- ],
19
- "@graphql-eslint/input-name": "error",
20
- "@graphql-eslint/no-root-type": ["error", { disallow: ["mutation", "subscription"] }],
21
- "@graphql-eslint/no-scalar-result-type-on-mutation": "error",
22
- "@graphql-eslint/require-deprecation-date": "error",
23
- "@graphql-eslint/require-field-of-type-query-in-mutation-result": "error",
24
- "@graphql-eslint/require-nullable-fields-with-oneof": "error",
25
- "@graphql-eslint/require-nullable-result-in-root": "error",
26
- "@graphql-eslint/require-type-pattern-with-oneof": "error"
1
+ var schema_all_default = {
2
+ extends: "./configs/schema-recommended",
3
+ rules: {
4
+ "@graphql-eslint/alphabetize": [
5
+ "error",
6
+ {
7
+ definitions: !0,
8
+ fields: ["ObjectTypeDefinition", "InterfaceTypeDefinition", "InputObjectTypeDefinition"],
9
+ values: !0,
10
+ arguments: ["FieldDefinition", "Field", "DirectiveDefinition", "Directive"],
11
+ groups: ["id", "*", "createdAt", "updatedAt"]
27
12
  }
28
- };
13
+ ],
14
+ "@graphql-eslint/input-name": "error",
15
+ "@graphql-eslint/no-root-type": ["error", { disallow: ["mutation", "subscription"] }],
16
+ "@graphql-eslint/no-scalar-result-type-on-mutation": "error",
17
+ "@graphql-eslint/require-deprecation-date": "error",
18
+ "@graphql-eslint/require-field-of-type-query-in-mutation-result": "error",
19
+ "@graphql-eslint/require-nullable-fields-with-oneof": "error",
20
+ "@graphql-eslint/require-nullable-result-in-root": "error",
21
+ "@graphql-eslint/require-type-pattern-with-oneof": "error"
29
22
  }
30
- });
31
- export default require_schema_all();
23
+ };
24
+ export {
25
+ schema_all_default as default
26
+ };
@@ -2,12 +2,12 @@ declare const _default: {
2
2
  parser: string;
3
3
  plugins: string[];
4
4
  rules: {
5
- '@graphql-eslint/description-style': string;
6
- '@graphql-eslint/known-argument-names': string;
7
- '@graphql-eslint/known-directives': string;
8
- '@graphql-eslint/known-type-names': string;
9
- '@graphql-eslint/lone-schema-definition': string;
10
- '@graphql-eslint/naming-convention': (string | {
5
+ '@graphql-eslint/description-style': "error";
6
+ '@graphql-eslint/known-argument-names': "error";
7
+ '@graphql-eslint/known-directives': "error";
8
+ '@graphql-eslint/known-type-names': "error";
9
+ '@graphql-eslint/lone-schema-definition': "error";
10
+ '@graphql-eslint/naming-convention': ["error", {
11
11
  types: string;
12
12
  FieldDefinition: string;
13
13
  InputValueDefinition: string;
@@ -42,25 +42,25 @@ declare const _default: {
42
42
  forbiddenPrefixes: string[];
43
43
  forbiddenSuffixes: string[];
44
44
  };
45
- })[];
46
- '@graphql-eslint/no-hashtag-description': string;
47
- '@graphql-eslint/no-typename-prefix': string;
48
- '@graphql-eslint/no-unreachable-types': string;
49
- '@graphql-eslint/possible-type-extension': string;
50
- '@graphql-eslint/provided-required-arguments': string;
51
- '@graphql-eslint/require-deprecation-reason': string;
52
- '@graphql-eslint/require-description': (string | {
45
+ }];
46
+ '@graphql-eslint/no-hashtag-description': "error";
47
+ '@graphql-eslint/no-typename-prefix': "error";
48
+ '@graphql-eslint/no-unreachable-types': "error";
49
+ '@graphql-eslint/possible-type-extension': "error";
50
+ '@graphql-eslint/provided-required-arguments': "error";
51
+ '@graphql-eslint/require-deprecation-reason': "error";
52
+ '@graphql-eslint/require-description': ["error", {
53
53
  types: boolean;
54
54
  DirectiveDefinition: boolean;
55
55
  rootField: boolean;
56
- })[];
57
- '@graphql-eslint/strict-id-in-types': string;
58
- '@graphql-eslint/unique-directive-names': string;
59
- '@graphql-eslint/unique-directive-names-per-location': string;
60
- '@graphql-eslint/unique-enum-value-names': string;
61
- '@graphql-eslint/unique-field-definition-names': string;
62
- '@graphql-eslint/unique-operation-types': string;
63
- '@graphql-eslint/unique-type-names': string;
56
+ }];
57
+ '@graphql-eslint/strict-id-in-types': "error";
58
+ '@graphql-eslint/unique-directive-names': "error";
59
+ '@graphql-eslint/unique-directive-names-per-location': "error";
60
+ '@graphql-eslint/unique-enum-value-names': "error";
61
+ '@graphql-eslint/unique-field-definition-names': "error";
62
+ '@graphql-eslint/unique-operation-types': "error";
63
+ '@graphql-eslint/unique-type-names': "error";
64
64
  };
65
65
  };
66
66
 
@@ -1,75 +1,70 @@
1
- import {
2
- __commonJS
3
- } from "../chunk-UIAXBAMD.js";
4
- var require_schema_recommended = __commonJS({
5
- "src/configs/schema-recommended.ts"(exports, module) {
6
- module.exports = {
7
- parser: "@graphql-eslint/eslint-plugin",
8
- plugins: ["@graphql-eslint"],
9
- rules: {
10
- "@graphql-eslint/description-style": "error",
11
- "@graphql-eslint/known-argument-names": "error",
12
- "@graphql-eslint/known-directives": "error",
13
- "@graphql-eslint/known-type-names": "error",
14
- "@graphql-eslint/lone-schema-definition": "error",
15
- "@graphql-eslint/naming-convention": [
16
- "error",
17
- {
18
- types: "PascalCase",
19
- FieldDefinition: "camelCase",
20
- InputValueDefinition: "camelCase",
21
- Argument: "camelCase",
22
- DirectiveDefinition: "camelCase",
23
- EnumValueDefinition: "UPPER_CASE",
24
- "FieldDefinition[parent.name.value=Query]": {
25
- forbiddenPrefixes: ["query", "get"],
26
- forbiddenSuffixes: ["Query"]
27
- },
28
- "FieldDefinition[parent.name.value=Mutation]": {
29
- forbiddenPrefixes: ["mutation"],
30
- forbiddenSuffixes: ["Mutation"]
31
- },
32
- "FieldDefinition[parent.name.value=Subscription]": {
33
- forbiddenPrefixes: ["subscription"],
34
- forbiddenSuffixes: ["Subscription"]
35
- },
36
- "EnumTypeDefinition,EnumTypeExtension": {
37
- forbiddenPrefixes: ["Enum"],
38
- forbiddenSuffixes: ["Enum"]
39
- },
40
- "InterfaceTypeDefinition,InterfaceTypeExtension": {
41
- forbiddenPrefixes: ["Interface"],
42
- forbiddenSuffixes: ["Interface"]
43
- },
44
- "UnionTypeDefinition,UnionTypeExtension": {
45
- forbiddenPrefixes: ["Union"],
46
- forbiddenSuffixes: ["Union"]
47
- },
48
- "ObjectTypeDefinition,ObjectTypeExtension": {
49
- forbiddenPrefixes: ["Type"],
50
- forbiddenSuffixes: ["Type"]
51
- }
52
- }
53
- ],
54
- "@graphql-eslint/no-hashtag-description": "error",
55
- "@graphql-eslint/no-typename-prefix": "error",
56
- "@graphql-eslint/no-unreachable-types": "error",
57
- "@graphql-eslint/possible-type-extension": "error",
58
- "@graphql-eslint/provided-required-arguments": "error",
59
- "@graphql-eslint/require-deprecation-reason": "error",
60
- "@graphql-eslint/require-description": [
61
- "error",
62
- { types: !0, DirectiveDefinition: !0, rootField: !0 }
63
- ],
64
- "@graphql-eslint/strict-id-in-types": "error",
65
- "@graphql-eslint/unique-directive-names": "error",
66
- "@graphql-eslint/unique-directive-names-per-location": "error",
67
- "@graphql-eslint/unique-enum-value-names": "error",
68
- "@graphql-eslint/unique-field-definition-names": "error",
69
- "@graphql-eslint/unique-operation-types": "error",
70
- "@graphql-eslint/unique-type-names": "error"
1
+ var schema_recommended_default = {
2
+ parser: "@graphql-eslint/eslint-plugin",
3
+ plugins: ["@graphql-eslint"],
4
+ rules: {
5
+ "@graphql-eslint/description-style": "error",
6
+ "@graphql-eslint/known-argument-names": "error",
7
+ "@graphql-eslint/known-directives": "error",
8
+ "@graphql-eslint/known-type-names": "error",
9
+ "@graphql-eslint/lone-schema-definition": "error",
10
+ "@graphql-eslint/naming-convention": [
11
+ "error",
12
+ {
13
+ types: "PascalCase",
14
+ FieldDefinition: "camelCase",
15
+ InputValueDefinition: "camelCase",
16
+ Argument: "camelCase",
17
+ DirectiveDefinition: "camelCase",
18
+ EnumValueDefinition: "UPPER_CASE",
19
+ "FieldDefinition[parent.name.value=Query]": {
20
+ forbiddenPrefixes: ["query", "get"],
21
+ forbiddenSuffixes: ["Query"]
22
+ },
23
+ "FieldDefinition[parent.name.value=Mutation]": {
24
+ forbiddenPrefixes: ["mutation"],
25
+ forbiddenSuffixes: ["Mutation"]
26
+ },
27
+ "FieldDefinition[parent.name.value=Subscription]": {
28
+ forbiddenPrefixes: ["subscription"],
29
+ forbiddenSuffixes: ["Subscription"]
30
+ },
31
+ "EnumTypeDefinition,EnumTypeExtension": {
32
+ forbiddenPrefixes: ["Enum"],
33
+ forbiddenSuffixes: ["Enum"]
34
+ },
35
+ "InterfaceTypeDefinition,InterfaceTypeExtension": {
36
+ forbiddenPrefixes: ["Interface"],
37
+ forbiddenSuffixes: ["Interface"]
38
+ },
39
+ "UnionTypeDefinition,UnionTypeExtension": {
40
+ forbiddenPrefixes: ["Union"],
41
+ forbiddenSuffixes: ["Union"]
42
+ },
43
+ "ObjectTypeDefinition,ObjectTypeExtension": {
44
+ forbiddenPrefixes: ["Type"],
45
+ forbiddenSuffixes: ["Type"]
46
+ }
71
47
  }
72
- };
48
+ ],
49
+ "@graphql-eslint/no-hashtag-description": "error",
50
+ "@graphql-eslint/no-typename-prefix": "error",
51
+ "@graphql-eslint/no-unreachable-types": "error",
52
+ "@graphql-eslint/possible-type-extension": "error",
53
+ "@graphql-eslint/provided-required-arguments": "error",
54
+ "@graphql-eslint/require-deprecation-reason": "error",
55
+ "@graphql-eslint/require-description": [
56
+ "error",
57
+ { types: !0, DirectiveDefinition: !0, rootField: !0 }
58
+ ],
59
+ "@graphql-eslint/strict-id-in-types": "error",
60
+ "@graphql-eslint/unique-directive-names": "error",
61
+ "@graphql-eslint/unique-directive-names-per-location": "error",
62
+ "@graphql-eslint/unique-enum-value-names": "error",
63
+ "@graphql-eslint/unique-field-definition-names": "error",
64
+ "@graphql-eslint/unique-operation-types": "error",
65
+ "@graphql-eslint/unique-type-names": "error"
73
66
  }
74
- });
75
- export default require_schema_recommended();
67
+ };
68
+ export {
69
+ schema_recommended_default as default
70
+ };
@@ -2,10 +2,10 @@ declare const _default: {
2
2
  parser: string;
3
3
  plugins: string[];
4
4
  rules: {
5
- '@graphql-eslint/relay-arguments': string;
6
- '@graphql-eslint/relay-connection-types': string;
7
- '@graphql-eslint/relay-edge-types': string;
8
- '@graphql-eslint/relay-page-info': string;
5
+ '@graphql-eslint/relay-arguments': "error";
6
+ '@graphql-eslint/relay-connection-types': "error";
7
+ '@graphql-eslint/relay-edge-types': "error";
8
+ '@graphql-eslint/relay-page-info': "error";
9
9
  };
10
10
  };
11
11
 
@@ -1,18 +1,13 @@
1
- import {
2
- __commonJS
3
- } from "../chunk-UIAXBAMD.js";
4
- var require_schema_relay = __commonJS({
5
- "src/configs/schema-relay.ts"(exports, module) {
6
- module.exports = {
7
- parser: "@graphql-eslint/eslint-plugin",
8
- plugins: ["@graphql-eslint"],
9
- rules: {
10
- "@graphql-eslint/relay-arguments": "error",
11
- "@graphql-eslint/relay-connection-types": "error",
12
- "@graphql-eslint/relay-edge-types": "error",
13
- "@graphql-eslint/relay-page-info": "error"
14
- }
15
- };
1
+ var schema_relay_default = {
2
+ parser: "@graphql-eslint/eslint-plugin",
3
+ plugins: ["@graphql-eslint"],
4
+ rules: {
5
+ "@graphql-eslint/relay-arguments": "error",
6
+ "@graphql-eslint/relay-connection-types": "error",
7
+ "@graphql-eslint/relay-edge-types": "error",
8
+ "@graphql-eslint/relay-page-info": "error"
16
9
  }
17
- });
18
- export default require_schema_relay();
10
+ };
11
+ export {
12
+ schema_relay_default as default
13
+ };
package/esm/documents.js CHANGED
@@ -1,4 +1,3 @@
1
- import "./chunk-UIAXBAMD.js";
2
1
  import path from "node:path";
3
2
  import debugFactory from "debug";
4
3
  import fg from "fast-glob";
@@ -1,4 +1,3 @@
1
- import "../chunk-UIAXBAMD.js";
2
1
  import {
3
2
  Kind,
4
3
  TypeInfo,
@@ -1,4 +1,3 @@
1
- import "../chunk-UIAXBAMD.js";
2
1
  import {
3
2
  isListType,
4
3
  isNonNullType,
@@ -1,4 +1,3 @@
1
- import "./chunk-UIAXBAMD.js";
2
1
  import fs from "node:fs";
3
2
  import path from "node:path";
4
3
  import debugFactory from "debug";