@graphql-eslint/eslint-plugin 3.14.0-alpha-20221222211539-5e993f5 → 3.14.0-alpha-20221223011223-bd3e820
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/configs/index.js +10 -10
- package/cjs/documents.js +5 -5
- package/cjs/estree-converter/converter.js +2 -2
- package/cjs/estree-converter/index.js +3 -3
- package/cjs/estree-converter/utils.js +2 -2
- package/cjs/flat-configs.js +36 -0
- package/cjs/index.js +16 -14
- package/cjs/parser.js +13 -13
- package/cjs/processor.js +2 -2
- package/cjs/rules/alphabetize.js +7 -7
- package/cjs/rules/graphql-js-validation.js +9 -9
- package/cjs/rules/index.js +66 -66
- package/cjs/rules/lone-executable-definition.js +4 -4
- package/cjs/rules/match-document-filename.js +4 -4
- package/cjs/rules/naming-convention.js +6 -6
- package/cjs/rules/no-anonymous-operations.js +2 -2
- package/cjs/rules/no-deprecated.js +2 -2
- package/cjs/rules/no-one-place-fragments.js +3 -4
- package/cjs/rules/no-root-type.js +3 -3
- package/cjs/rules/no-scalar-result-type-on-mutation.js +2 -2
- package/cjs/rules/no-unreachable-types.js +3 -3
- package/cjs/rules/no-unused-fields.js +3 -3
- package/cjs/rules/relay-arguments.js +2 -2
- package/cjs/rules/relay-edge-types.js +6 -6
- package/cjs/rules/relay-page-info.js +5 -5
- package/cjs/rules/require-deprecation-date.js +2 -2
- package/cjs/rules/require-deprecation-reason.js +2 -2
- package/cjs/rules/require-description.js +8 -8
- package/cjs/rules/require-field-of-type-query-in-mutation-result.js +3 -3
- package/cjs/rules/require-id-when-available.js +8 -8
- package/cjs/rules/selection-set-depth.js +5 -5
- package/cjs/rules/strict-id-in-types.js +7 -7
- package/cjs/rules/unique-fragment-name.js +4 -4
- package/cjs/rules/unique-operation-name.js +2 -2
- package/cjs/schema.js +2 -2
- package/esm/cache.js +25 -0
- package/esm/configs/base.js +4 -0
- package/esm/configs/index.js +12 -0
- package/esm/configs/operations-all.js +29 -0
- package/esm/configs/operations-recommended.js +53 -0
- package/esm/configs/relay.js +9 -0
- package/esm/configs/schema-all.js +22 -0
- package/esm/configs/schema-recommended.js +49 -0
- package/esm/documents.js +144 -0
- package/esm/estree-converter/converter.js +58 -0
- package/esm/estree-converter/index.js +3 -0
- package/esm/estree-converter/types.js +1 -0
- package/esm/estree-converter/utils.js +102 -0
- package/esm/flat-configs.js +33 -0
- package/esm/graphql-config.js +49 -0
- package/esm/index.js +9 -0
- package/esm/package.json +1 -0
- package/esm/parser.js +56 -0
- package/esm/processor.js +75 -0
- package/esm/rules/alphabetize.js +344 -0
- package/esm/rules/description-style.js +75 -0
- package/esm/rules/graphql-js-validation.js +498 -0
- package/esm/rules/index.js +71 -0
- package/esm/rules/input-name.js +133 -0
- package/esm/rules/lone-executable-definition.js +85 -0
- package/esm/rules/match-document-filename.js +232 -0
- package/esm/rules/naming-convention.js +307 -0
- package/esm/rules/no-anonymous-operations.js +64 -0
- package/esm/rules/no-case-insensitive-enum-values-duplicates.js +58 -0
- package/esm/rules/no-deprecated.js +121 -0
- package/esm/rules/no-duplicate-fields.js +109 -0
- package/esm/rules/no-hashtag-description.js +86 -0
- package/esm/rules/no-one-place-fragments.js +80 -0
- package/esm/rules/no-root-type.js +83 -0
- package/esm/rules/no-scalar-result-type-on-mutation.js +63 -0
- package/esm/rules/no-typename-prefix.js +62 -0
- package/esm/rules/no-unreachable-types.js +154 -0
- package/esm/rules/no-unused-fields.js +127 -0
- package/esm/rules/relay-arguments.js +118 -0
- package/esm/rules/relay-connection-types.js +104 -0
- package/esm/rules/relay-edge-types.js +186 -0
- package/esm/rules/relay-page-info.js +97 -0
- package/esm/rules/require-deprecation-date.js +120 -0
- package/esm/rules/require-deprecation-reason.js +53 -0
- package/esm/rules/require-description.js +190 -0
- package/esm/rules/require-field-of-type-query-in-mutation-result.js +69 -0
- package/esm/rules/require-id-when-available.js +196 -0
- package/esm/rules/require-nullable-fields-with-oneof.js +58 -0
- package/esm/rules/require-type-pattern-with-oneof.js +57 -0
- package/esm/rules/selection-set-depth.js +131 -0
- package/esm/rules/strict-id-in-types.js +159 -0
- package/esm/rules/unique-fragment-name.js +86 -0
- package/esm/rules/unique-operation-name.js +62 -0
- package/esm/schema.js +37 -0
- package/esm/testkit.js +181 -0
- package/esm/types.js +1 -0
- package/esm/utils.js +83 -0
- package/package.json +10 -1
- package/typings/estree-converter/converter.d.cts +1 -1
- package/typings/estree-converter/converter.d.ts +1 -1
- package/typings/estree-converter/index.d.cts +3 -3
- package/typings/estree-converter/index.d.ts +3 -3
- package/typings/estree-converter/types.d.cts +3 -3
- package/typings/estree-converter/types.d.ts +3 -3
- package/typings/estree-converter/utils.d.cts +2 -2
- package/typings/estree-converter/utils.d.ts +2 -2
- package/typings/flat-configs.d.cts +248 -0
- package/typings/flat-configs.d.ts +248 -0
- package/typings/graphql-config.d.cts +1 -1
- package/typings/graphql-config.d.ts +1 -1
- package/typings/index.d.cts +8 -7
- package/typings/index.d.ts +8 -7
- package/typings/parser.d.cts +1 -1
- package/typings/parser.d.ts +1 -1
- package/typings/rules/alphabetize.d.cts +1 -1
- package/typings/rules/alphabetize.d.ts +1 -1
- package/typings/rules/description-style.d.cts +1 -1
- package/typings/rules/description-style.d.ts +1 -1
- package/typings/rules/graphql-js-validation.d.cts +1 -1
- package/typings/rules/graphql-js-validation.d.ts +1 -1
- package/typings/rules/index.d.cts +45 -45
- package/typings/rules/index.d.ts +45 -45
- package/typings/rules/input-name.d.cts +1 -1
- package/typings/rules/input-name.d.ts +1 -1
- package/typings/rules/lone-executable-definition.d.cts +1 -1
- package/typings/rules/lone-executable-definition.d.ts +1 -1
- package/typings/rules/match-document-filename.d.cts +2 -2
- package/typings/rules/match-document-filename.d.ts +2 -2
- package/typings/rules/naming-convention.d.cts +1 -1
- package/typings/rules/naming-convention.d.ts +1 -1
- package/typings/rules/no-anonymous-operations.d.cts +1 -1
- package/typings/rules/no-anonymous-operations.d.ts +1 -1
- package/typings/rules/no-case-insensitive-enum-values-duplicates.d.cts +1 -1
- package/typings/rules/no-case-insensitive-enum-values-duplicates.d.ts +1 -1
- package/typings/rules/no-deprecated.d.cts +1 -1
- package/typings/rules/no-deprecated.d.ts +1 -1
- package/typings/rules/no-duplicate-fields.d.cts +1 -1
- package/typings/rules/no-duplicate-fields.d.ts +1 -1
- package/typings/rules/no-hashtag-description.d.cts +1 -1
- package/typings/rules/no-hashtag-description.d.ts +1 -1
- package/typings/rules/no-one-place-fragments.d.cts +1 -1
- package/typings/rules/no-one-place-fragments.d.ts +1 -1
- package/typings/rules/no-root-type.d.cts +1 -1
- package/typings/rules/no-root-type.d.ts +1 -1
- package/typings/rules/no-scalar-result-type-on-mutation.d.cts +1 -1
- package/typings/rules/no-scalar-result-type-on-mutation.d.ts +1 -1
- package/typings/rules/no-typename-prefix.d.cts +1 -1
- package/typings/rules/no-typename-prefix.d.ts +1 -1
- package/typings/rules/no-unreachable-types.d.cts +1 -1
- package/typings/rules/no-unreachable-types.d.ts +1 -1
- package/typings/rules/no-unused-fields.d.cts +1 -1
- package/typings/rules/no-unused-fields.d.ts +1 -1
- package/typings/rules/relay-arguments.d.cts +1 -1
- package/typings/rules/relay-arguments.d.ts +1 -1
- package/typings/rules/relay-connection-types.d.cts +1 -1
- package/typings/rules/relay-connection-types.d.ts +1 -1
- package/typings/rules/relay-edge-types.d.cts +1 -1
- package/typings/rules/relay-edge-types.d.ts +1 -1
- package/typings/rules/relay-page-info.d.cts +1 -1
- package/typings/rules/relay-page-info.d.ts +1 -1
- package/typings/rules/require-deprecation-date.d.cts +1 -1
- package/typings/rules/require-deprecation-date.d.ts +1 -1
- package/typings/rules/require-deprecation-reason.d.cts +1 -1
- package/typings/rules/require-deprecation-reason.d.ts +1 -1
- package/typings/rules/require-description.d.cts +1 -1
- package/typings/rules/require-description.d.ts +1 -1
- package/typings/rules/require-field-of-type-query-in-mutation-result.d.cts +1 -1
- package/typings/rules/require-field-of-type-query-in-mutation-result.d.ts +1 -1
- package/typings/rules/require-id-when-available.d.cts +1 -1
- package/typings/rules/require-id-when-available.d.ts +1 -1
- package/typings/rules/require-nullable-fields-with-oneof.d.cts +1 -1
- package/typings/rules/require-nullable-fields-with-oneof.d.ts +1 -1
- package/typings/rules/require-type-pattern-with-oneof.d.cts +1 -1
- package/typings/rules/require-type-pattern-with-oneof.d.ts +1 -1
- package/typings/rules/selection-set-depth.d.cts +1 -1
- package/typings/rules/selection-set-depth.d.ts +1 -1
- package/typings/rules/strict-id-in-types.d.cts +1 -1
- package/typings/rules/strict-id-in-types.d.ts +1 -1
- package/typings/rules/unique-fragment-name.d.cts +2 -2
- package/typings/rules/unique-fragment-name.d.ts +2 -2
- package/typings/rules/unique-operation-name.d.cts +1 -1
- package/typings/rules/unique-operation-name.d.ts +1 -1
- package/typings/schema.d.cts +1 -1
- package/typings/schema.d.ts +1 -1
- package/typings/testkit.d.cts +3 -3
- package/typings/testkit.d.ts +3 -3
- package/typings/types.d.cts +2 -2
- package/typings/types.d.ts +2 -2
- package/typings/utils.d.cts +2 -2
- package/typings/utils.d.ts +2 -2
package/typings/rules/index.d.ts
CHANGED
@@ -1,52 +1,52 @@
|
|
1
1
|
export declare const rules: {
|
2
|
-
alphabetize: import("
|
2
|
+
alphabetize: import("../types.js").GraphQLESLintRule<{
|
3
3
|
definitions?: boolean;
|
4
|
-
selections?: import("json-schema-to-ts/lib/types/type-utils").
|
5
|
-
arguments?: import("json-schema-to-ts/lib/types/type-utils").
|
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").
|
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("
|
11
|
+
'description-style': import("../types.js").GraphQLESLintRule<{
|
12
12
|
style?: "block" | "inline";
|
13
13
|
}[], false>;
|
14
|
-
'input-name': import("
|
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("
|
20
|
+
'lone-executable-definition': import("../types.js").GraphQLESLintRule<{
|
21
21
|
ignore?: ("fragment" | "query" | "mutation" | "subscription")[];
|
22
22
|
}[], false>;
|
23
|
-
'match-document-filename': import("
|
24
|
-
fragment?: import("json-schema-to-ts/lib/types/type-utils").
|
25
|
-
style?: import("json-schema-to-ts/lib/types/type-utils").
|
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").
|
30
|
-
style?: import("json-schema-to-ts/lib/types/type-utils").
|
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").
|
35
|
-
style?: import("json-schema-to-ts/lib/types/type-utils").
|
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").
|
40
|
-
style?: import("json-schema-to-ts/lib/types/type-utils").
|
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("
|
46
|
+
'naming-convention': import("../types.js").GraphQLESLintRule<{
|
47
47
|
[x: string]: unknown;
|
48
|
-
types?: import("json-schema-to-ts/lib/types/type-utils").
|
49
|
-
style?: import("json-schema-to-ts/lib/types/type-utils").
|
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("
|
60
|
-
'no-case-insensitive-enum-values-duplicates': import("
|
61
|
-
'no-deprecated': import("
|
62
|
-
'no-duplicate-fields': import("
|
63
|
-
'no-hashtag-description': import("
|
64
|
-
'no-one-place-fragments': import("
|
65
|
-
'no-root-type': import("
|
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("
|
69
|
-
'no-typename-prefix': import("
|
70
|
-
'no-unreachable-types': import("
|
71
|
-
'no-unused-fields': import("
|
72
|
-
'relay-arguments': import("
|
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("
|
76
|
-
'relay-edge-types': import("
|
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("
|
82
|
-
'require-deprecation-date': import("
|
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("
|
86
|
-
'require-description': import("
|
87
|
-
'require-field-of-type-query-in-mutation-result': import("
|
88
|
-
'require-id-when-available': import("
|
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("
|
92
|
-
'require-type-pattern-with-oneof': import("
|
93
|
-
'selection-set-depth': import("
|
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("
|
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("
|
106
|
-
'unique-operation-name': import("
|
105
|
+
'unique-fragment-name': import("../types.js").GraphQLESLintRule<any[], false>;
|
106
|
+
'unique-operation-name': import("../types.js").GraphQLESLintRule<any[], false>;
|
107
107
|
};
|
@@ -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,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
|
1
|
+
import { GraphQLESLintRule } from '../types.cjs';
|
2
2
|
export declare const rule: GraphQLESLintRule<[], true>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
1
|
+
import { GraphQLESLintRule } from '../types.js';
|
2
2
|
export declare const rule: GraphQLESLintRule<[], true>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
1
|
+
import { GraphQLESLintRule } from '../types.cjs';
|
2
2
|
export declare const rule: GraphQLESLintRule;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
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,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
|
1
|
+
import { GraphQLESLintRule } from '../types.cjs';
|
2
2
|
export declare const rule: GraphQLESLintRule;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
1
|
+
import { GraphQLESLintRule } from '../types.js';
|
2
2
|
export declare const rule: GraphQLESLintRule;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
1
|
+
import { GraphQLESLintRule } from '../types.cjs';
|
2
2
|
export declare const rule: GraphQLESLintRule;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
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
|
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
|
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
|
1
|
+
import { GraphQLESLintRule } from '../types.cjs';
|
2
2
|
export declare const rule: GraphQLESLintRule;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
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,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;
|
package/typings/schema.d.cts
CHANGED
@@ -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;
|
package/typings/schema.d.ts
CHANGED
@@ -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;
|
package/typings/testkit.d.cts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RuleTester } from 'eslint';
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
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>;
|
package/typings/testkit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RuleTester } from 'eslint';
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
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>;
|
package/typings/types.d.cts
CHANGED
@@ -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[];
|