@graphql-eslint/eslint-plugin 4.3.0-alpha-20241204113935-074a093b359d2947f263679eac8596958876a3b6 → 4.3.0-alpha-20241204174617-254174746405f1e1cbe325fca0bd5a3a9352aff8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/meta.js +1 -1
- package/cjs/schema.js +1 -1
- package/esm/index.d.ts +8 -8
- package/esm/meta.js +1 -1
- package/esm/rules/alphabetize/index.d.ts +3 -3
- package/esm/rules/index.d.ts +8 -8
- package/esm/schema.js +1 -1
- package/index.browser.js +1 -1
- package/package.json +1 -1
package/cjs/meta.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.3.0-alpha-
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.3.0-alpha-20241204174617-254174746405f1e1cbe325fca0bd5a3a9352aff8";
|
2
2
|
|
3
3
|
|
4
4
|
exports.version = version;
|
package/cjs/schema.js
CHANGED
@@ -22,7 +22,7 @@ function getSchema(project) {
|
|
22
22
|
const urlArgument = _optionalChain([linkDirective, 'access', _4 => _4.arguments, 'optionalAccess', _5 => _5.find, 'call', _6 => _6((a) => a.name.value === "url")]);
|
23
23
|
if (!urlArgument) return _graphql.BREAK;
|
24
24
|
if (urlArgument.value.kind !== "StringValue") return _graphql.BREAK;
|
25
|
-
isFederation = urlArgument.value.value.includes("/federation/");
|
25
|
+
isFederation = urlArgument.value.value.includes("specs.apollo.dev/federation/");
|
26
26
|
}
|
27
27
|
});
|
28
28
|
let schema;
|
package/esm/index.d.ts
CHANGED
@@ -49,12 +49,12 @@ declare const _default: {
|
|
49
49
|
};
|
50
50
|
rules: {
|
51
51
|
alphabetize: GraphQLESLintRule<{
|
52
|
-
values?: boolean | undefined;
|
53
52
|
definitions?: boolean | undefined;
|
54
|
-
|
55
|
-
|
53
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
54
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
55
|
+
values?: boolean | undefined;
|
56
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
56
57
|
variables?: boolean | undefined;
|
57
|
-
arguments?: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[] | undefined;
|
58
58
|
groups?: string[] | undefined;
|
59
59
|
}[]>;
|
60
60
|
'description-style': GraphQLESLintRule<{
|
@@ -67,7 +67,7 @@ declare const _default: {
|
|
67
67
|
checkMutations?: boolean | undefined;
|
68
68
|
}[]>;
|
69
69
|
'lone-executable-definition': GraphQLESLintRule<{
|
70
|
-
ignore?: ("fragment"
|
70
|
+
ignore?: (graphql.OperationTypeNode | "fragment")[] | undefined;
|
71
71
|
}[]>;
|
72
72
|
'match-document-filename': GraphQLESLintRule<{
|
73
73
|
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
@@ -75,7 +75,6 @@ declare const _default: {
|
|
75
75
|
suffix?: string | undefined;
|
76
76
|
prefix?: string | undefined;
|
77
77
|
} | undefined;
|
78
|
-
fileExtension?: ".gql" | ".graphql" | undefined;
|
79
78
|
query?: (CaseStyle | "matchDocumentStyle") | {
|
80
79
|
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
81
80
|
suffix?: string | undefined;
|
@@ -91,11 +90,10 @@ declare const _default: {
|
|
91
90
|
suffix?: string | undefined;
|
92
91
|
prefix?: string | undefined;
|
93
92
|
} | undefined;
|
93
|
+
fileExtension?: ".gql" | ".graphql" | undefined;
|
94
94
|
}[]>;
|
95
95
|
'naming-convention': GraphQLESLintRule<{
|
96
96
|
[x: string]: unknown;
|
97
|
-
allowLeadingUnderscore?: boolean | undefined;
|
98
|
-
allowTrailingUnderscore?: boolean | undefined;
|
99
97
|
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
100
98
|
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
101
99
|
suffix?: string | undefined;
|
@@ -112,6 +110,8 @@ declare const _default: {
|
|
112
110
|
requiredSuffixes?: string[] | undefined;
|
113
111
|
ignorePattern?: string | undefined;
|
114
112
|
} | undefined;
|
113
|
+
allowLeadingUnderscore?: boolean | undefined;
|
114
|
+
allowTrailingUnderscore?: boolean | undefined;
|
115
115
|
}[]>;
|
116
116
|
'no-anonymous-operations': GraphQLESLintRule;
|
117
117
|
'no-deprecated': GraphQLESLintRule<[], true>;
|
package/esm/meta.js
CHANGED
@@ -19,7 +19,7 @@ declare const schema: {
|
|
19
19
|
readonly properties: {
|
20
20
|
readonly fields: {
|
21
21
|
readonly items: {
|
22
|
-
readonly enum: ("
|
22
|
+
readonly enum: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[];
|
23
23
|
};
|
24
24
|
readonly description: "Fields of `type`, `interface`, and `input`.";
|
25
25
|
readonly type: "array";
|
@@ -32,7 +32,7 @@ declare const schema: {
|
|
32
32
|
};
|
33
33
|
readonly selections: {
|
34
34
|
readonly items: {
|
35
|
-
readonly enum: ("
|
35
|
+
readonly enum: ("OperationDefinition" | "FragmentDefinition")[];
|
36
36
|
};
|
37
37
|
readonly description: "Selections of `fragment` and operations `query`, `mutation` and `subscription`.";
|
38
38
|
readonly type: "array";
|
@@ -45,7 +45,7 @@ declare const schema: {
|
|
45
45
|
};
|
46
46
|
readonly arguments: {
|
47
47
|
readonly items: {
|
48
|
-
readonly enum: ("
|
48
|
+
readonly enum: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[];
|
49
49
|
};
|
50
50
|
readonly description: "Arguments of fields and directives.";
|
51
51
|
readonly type: "array";
|
package/esm/rules/index.d.ts
CHANGED
@@ -12,12 +12,12 @@ import 'json-schema-to-ts';
|
|
12
12
|
|
13
13
|
declare const rules: {
|
14
14
|
alphabetize: GraphQLESLintRule<{
|
15
|
-
values?: boolean | undefined;
|
16
15
|
definitions?: boolean | undefined;
|
17
|
-
|
18
|
-
|
16
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
17
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
18
|
+
values?: boolean | undefined;
|
19
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
19
20
|
variables?: boolean | undefined;
|
20
|
-
arguments?: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[] | undefined;
|
21
21
|
groups?: string[] | undefined;
|
22
22
|
}[]>;
|
23
23
|
'description-style': GraphQLESLintRule<{
|
@@ -30,7 +30,7 @@ declare const rules: {
|
|
30
30
|
checkMutations?: boolean | undefined;
|
31
31
|
}[]>;
|
32
32
|
'lone-executable-definition': GraphQLESLintRule<{
|
33
|
-
ignore?: ("fragment"
|
33
|
+
ignore?: (graphql.OperationTypeNode | "fragment")[] | undefined;
|
34
34
|
}[]>;
|
35
35
|
'match-document-filename': GraphQLESLintRule<{
|
36
36
|
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
@@ -38,7 +38,6 @@ declare const rules: {
|
|
38
38
|
suffix?: string | undefined;
|
39
39
|
prefix?: string | undefined;
|
40
40
|
} | undefined;
|
41
|
-
fileExtension?: ".gql" | ".graphql" | undefined;
|
42
41
|
query?: (CaseStyle | "matchDocumentStyle") | {
|
43
42
|
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
44
43
|
suffix?: string | undefined;
|
@@ -54,11 +53,10 @@ declare const rules: {
|
|
54
53
|
suffix?: string | undefined;
|
55
54
|
prefix?: string | undefined;
|
56
55
|
} | undefined;
|
56
|
+
fileExtension?: ".gql" | ".graphql" | undefined;
|
57
57
|
}[]>;
|
58
58
|
'naming-convention': GraphQLESLintRule<{
|
59
59
|
[x: string]: unknown;
|
60
|
-
allowLeadingUnderscore?: boolean | undefined;
|
61
|
-
allowTrailingUnderscore?: boolean | undefined;
|
62
60
|
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
63
61
|
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
64
62
|
suffix?: string | undefined;
|
@@ -75,6 +73,8 @@ declare const rules: {
|
|
75
73
|
requiredSuffixes?: string[] | undefined;
|
76
74
|
ignorePattern?: string | undefined;
|
77
75
|
} | undefined;
|
76
|
+
allowLeadingUnderscore?: boolean | undefined;
|
77
|
+
allowTrailingUnderscore?: boolean | undefined;
|
78
78
|
}[]>;
|
79
79
|
'no-anonymous-operations': GraphQLESLintRule;
|
80
80
|
'no-deprecated': GraphQLESLintRule<[], true>;
|
package/esm/schema.js
CHANGED
@@ -23,7 +23,7 @@ function getSchema(project) {
|
|
23
23
|
const urlArgument = linkDirective.arguments?.find((a) => a.name.value === "url");
|
24
24
|
if (!urlArgument) return BREAK;
|
25
25
|
if (urlArgument.value.kind !== "StringValue") return BREAK;
|
26
|
-
isFederation = urlArgument.value.value.includes("/federation/");
|
26
|
+
isFederation = urlArgument.value.value.includes("specs.apollo.dev/federation/");
|
27
27
|
}
|
28
28
|
});
|
29
29
|
let schema;
|
package/index.browser.js
CHANGED
@@ -150,7 +150,7 @@ function convertToESTree(node, schema16) {
|
|
150
150
|
}
|
151
151
|
|
152
152
|
// src/meta.ts
|
153
|
-
var version = "4.3.0-alpha-
|
153
|
+
var version = "4.3.0-alpha-20241204174617-254174746405f1e1cbe325fca0bd5a3a9352aff8";
|
154
154
|
|
155
155
|
// src/siblings.ts
|
156
156
|
import {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-eslint/eslint-plugin",
|
3
|
-
"version": "4.3.0-alpha-
|
3
|
+
"version": "4.3.0-alpha-20241204174617-254174746405f1e1cbe325fca0bd5a3a9352aff8",
|
4
4
|
"type": "module",
|
5
5
|
"description": "GraphQL plugin for ESLint",
|
6
6
|
"repository": "https://github.com/dimaMachina/graphql-eslint",
|