@graphql-eslint/eslint-plugin 4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c → 4.4.0-alpha-20241224144709-d232a7eb02fc645182837e5cdc82deb653eeec48
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/browser.js +1 -1
- package/cjs/index.d.cts +9 -9
- package/cjs/index.js +2 -2
- package/cjs/meta.js +1 -1
- package/cjs/rules/alphabetize/index.d.cts +3 -3
- package/cjs/rules/index.d.cts +9 -9
- package/esm/index.js +2 -2
- package/esm/meta.js +1 -1
- package/package.json +1 -1
package/browser.js
CHANGED
@@ -408,7 +408,7 @@ function convertToESTree(node, schema16) {
|
|
408
408
|
}
|
409
409
|
|
410
410
|
// src/meta.ts
|
411
|
-
var version = "4.4.0-alpha-
|
411
|
+
var version = "4.4.0-alpha-20241224144709-d232a7eb02fc645182837e5cdc82deb653eeec48";
|
412
412
|
|
413
413
|
// src/siblings.ts
|
414
414
|
import {
|
package/cjs/index.d.cts
CHANGED
@@ -48,12 +48,12 @@ declare const _default: {
|
|
48
48
|
};
|
49
49
|
rules: {
|
50
50
|
alphabetize: GraphQLESLintRule<{
|
51
|
-
values?: boolean | undefined;
|
52
51
|
definitions?: boolean | undefined;
|
53
|
-
|
54
|
-
|
52
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
53
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
54
|
+
values?: boolean | undefined;
|
55
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
55
56
|
variables?: boolean | undefined;
|
56
|
-
arguments?: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[] | undefined;
|
57
57
|
groups?: string[] | undefined;
|
58
58
|
}[]>;
|
59
59
|
'description-style': GraphQLESLintRule<{
|
@@ -66,7 +66,7 @@ declare const _default: {
|
|
66
66
|
checkMutations?: boolean | undefined;
|
67
67
|
}[]>;
|
68
68
|
'lone-executable-definition': GraphQLESLintRule<{
|
69
|
-
ignore?: ("fragment"
|
69
|
+
ignore?: (graphql.OperationTypeNode | "fragment")[] | undefined;
|
70
70
|
}[]>;
|
71
71
|
'match-document-filename': GraphQLESLintRule<{
|
72
72
|
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
@@ -74,7 +74,6 @@ declare const _default: {
|
|
74
74
|
suffix?: string | undefined;
|
75
75
|
prefix?: string | undefined;
|
76
76
|
} | undefined;
|
77
|
-
fileExtension?: ".gql" | ".graphql" | undefined;
|
78
77
|
query?: (CaseStyle | "matchDocumentStyle") | {
|
79
78
|
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
80
79
|
suffix?: string | undefined;
|
@@ -90,11 +89,10 @@ declare const _default: {
|
|
90
89
|
suffix?: string | undefined;
|
91
90
|
prefix?: string | undefined;
|
92
91
|
} | undefined;
|
92
|
+
fileExtension?: ".gql" | ".graphql" | undefined;
|
93
93
|
}[]>;
|
94
94
|
'naming-convention': GraphQLESLintRule<{
|
95
95
|
[x: string]: unknown;
|
96
|
-
allowLeadingUnderscore?: boolean | undefined;
|
97
|
-
allowTrailingUnderscore?: boolean | undefined;
|
98
96
|
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
99
97
|
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
100
98
|
suffix?: string | undefined;
|
@@ -111,6 +109,8 @@ declare const _default: {
|
|
111
109
|
requiredSuffixes?: string[] | undefined;
|
112
110
|
ignorePattern?: string | undefined;
|
113
111
|
} | undefined;
|
112
|
+
allowLeadingUnderscore?: boolean | undefined;
|
113
|
+
allowTrailingUnderscore?: boolean | undefined;
|
114
114
|
}[]>;
|
115
115
|
'no-anonymous-operations': GraphQLESLintRule;
|
116
116
|
'no-deprecated': GraphQLESLintRule<[], true>;
|
@@ -141,6 +141,7 @@ declare const _default: {
|
|
141
141
|
}[]>;
|
142
142
|
'require-deprecation-reason': GraphQLESLintRule;
|
143
143
|
'require-description': GraphQLESLintRule<{
|
144
|
+
types?: true | undefined;
|
144
145
|
OperationDefinition?: boolean | undefined;
|
145
146
|
ScalarTypeDefinition?: boolean | undefined;
|
146
147
|
ObjectTypeDefinition?: boolean | undefined;
|
@@ -152,7 +153,6 @@ declare const _default: {
|
|
152
153
|
EnumValueDefinition?: boolean | undefined;
|
153
154
|
InputObjectTypeDefinition?: boolean | undefined;
|
154
155
|
DirectiveDefinition?: boolean | undefined;
|
155
|
-
types?: true | undefined;
|
156
156
|
rootField?: true | undefined;
|
157
157
|
ignoredSelectors?: string[] | undefined;
|
158
158
|
}[]>;
|
package/cjs/index.js
CHANGED
@@ -5,7 +5,7 @@ var _indexjs3 = require('./rules/index.js');
|
|
5
5
|
var _typesjs = require('./types.js'); _createStarExport(_typesjs);
|
6
6
|
var _utilsjs = require('./utils.js');
|
7
7
|
const processors = { graphql: _processorjs.processor };
|
8
|
-
var
|
8
|
+
var index_default = {
|
9
9
|
parser: _parserjs.parser,
|
10
10
|
processor: _processorjs.processor,
|
11
11
|
rules: _indexjs3.rules,
|
@@ -20,4 +20,4 @@ var src_default = {
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.configs = _indexjs.configs; exports.default =
|
23
|
+
exports.configs = _indexjs.configs; exports.default = index_default; exports.parseForESLint = _parserjs.parseForESLint; exports.parser = _parserjs.parser; exports.processors = processors; exports.requireGraphQLOperations = _utilsjs.requireGraphQLOperations; exports.requireGraphQLSchema = _utilsjs.requireGraphQLSchema; exports.rules = _indexjs3.rules;
|
package/cjs/meta.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.4.0-alpha-
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.4.0-alpha-20241224144709-d232a7eb02fc645182837e5cdc82deb653eeec48";
|
2
2
|
|
3
3
|
|
4
4
|
exports.version = version;
|
@@ -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/cjs/rules/index.d.cts
CHANGED
@@ -11,12 +11,12 @@ import 'json-schema-to-ts';
|
|
11
11
|
|
12
12
|
declare const rules: {
|
13
13
|
alphabetize: GraphQLESLintRule<{
|
14
|
-
values?: boolean | undefined;
|
15
14
|
definitions?: boolean | undefined;
|
16
|
-
|
17
|
-
|
15
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
16
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
17
|
+
values?: boolean | undefined;
|
18
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
18
19
|
variables?: boolean | undefined;
|
19
|
-
arguments?: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[] | undefined;
|
20
20
|
groups?: string[] | undefined;
|
21
21
|
}[]>;
|
22
22
|
'description-style': GraphQLESLintRule<{
|
@@ -29,7 +29,7 @@ declare const rules: {
|
|
29
29
|
checkMutations?: boolean | undefined;
|
30
30
|
}[]>;
|
31
31
|
'lone-executable-definition': GraphQLESLintRule<{
|
32
|
-
ignore?: ("fragment"
|
32
|
+
ignore?: (graphql.OperationTypeNode | "fragment")[] | undefined;
|
33
33
|
}[]>;
|
34
34
|
'match-document-filename': GraphQLESLintRule<{
|
35
35
|
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
@@ -37,7 +37,6 @@ declare const rules: {
|
|
37
37
|
suffix?: string | undefined;
|
38
38
|
prefix?: string | undefined;
|
39
39
|
} | undefined;
|
40
|
-
fileExtension?: ".gql" | ".graphql" | undefined;
|
41
40
|
query?: (CaseStyle | "matchDocumentStyle") | {
|
42
41
|
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
43
42
|
suffix?: string | undefined;
|
@@ -53,11 +52,10 @@ declare const rules: {
|
|
53
52
|
suffix?: string | undefined;
|
54
53
|
prefix?: string | undefined;
|
55
54
|
} | undefined;
|
55
|
+
fileExtension?: ".gql" | ".graphql" | undefined;
|
56
56
|
}[]>;
|
57
57
|
'naming-convention': GraphQLESLintRule<{
|
58
58
|
[x: string]: unknown;
|
59
|
-
allowLeadingUnderscore?: boolean | undefined;
|
60
|
-
allowTrailingUnderscore?: boolean | undefined;
|
61
59
|
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
62
60
|
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
63
61
|
suffix?: string | undefined;
|
@@ -74,6 +72,8 @@ declare const rules: {
|
|
74
72
|
requiredSuffixes?: string[] | undefined;
|
75
73
|
ignorePattern?: string | undefined;
|
76
74
|
} | undefined;
|
75
|
+
allowLeadingUnderscore?: boolean | undefined;
|
76
|
+
allowTrailingUnderscore?: boolean | undefined;
|
77
77
|
}[]>;
|
78
78
|
'no-anonymous-operations': GraphQLESLintRule;
|
79
79
|
'no-deprecated': GraphQLESLintRule<[], true>;
|
@@ -104,6 +104,7 @@ declare const rules: {
|
|
104
104
|
}[]>;
|
105
105
|
'require-deprecation-reason': GraphQLESLintRule;
|
106
106
|
'require-description': GraphQLESLintRule<{
|
107
|
+
types?: true | undefined;
|
107
108
|
OperationDefinition?: boolean | undefined;
|
108
109
|
ScalarTypeDefinition?: boolean | undefined;
|
109
110
|
ObjectTypeDefinition?: boolean | undefined;
|
@@ -115,7 +116,6 @@ declare const rules: {
|
|
115
116
|
EnumValueDefinition?: boolean | undefined;
|
116
117
|
InputObjectTypeDefinition?: boolean | undefined;
|
117
118
|
DirectiveDefinition?: boolean | undefined;
|
118
|
-
types?: true | undefined;
|
119
119
|
rootField?: true | undefined;
|
120
120
|
ignoredSelectors?: string[] | undefined;
|
121
121
|
}[]>;
|
package/esm/index.js
CHANGED
@@ -5,7 +5,7 @@ import { rules } from "./rules/index.js";
|
|
5
5
|
export * from "./types.js";
|
6
6
|
import { requireGraphQLSchema, requireGraphQLOperations } from "./utils.js";
|
7
7
|
const processors = { graphql: processor };
|
8
|
-
var
|
8
|
+
var index_default = {
|
9
9
|
parser,
|
10
10
|
processor,
|
11
11
|
rules,
|
@@ -13,7 +13,7 @@ var src_default = {
|
|
13
13
|
};
|
14
14
|
export {
|
15
15
|
configs,
|
16
|
-
|
16
|
+
index_default as default,
|
17
17
|
parseForESLint,
|
18
18
|
parser,
|
19
19
|
processors,
|
package/esm/meta.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-eslint/eslint-plugin",
|
3
|
-
"version": "4.4.0-alpha-
|
3
|
+
"version": "4.4.0-alpha-20241224144709-d232a7eb02fc645182837e5cdc82deb653eeec48",
|
4
4
|
"type": "module",
|
5
5
|
"description": "GraphQL plugin for ESLint",
|
6
6
|
"repository": "https://github.com/dimaMachina/graphql-eslint",
|