@graphql-eslint/eslint-plugin 4.4.0-alpha-20241224144532-cccddcf4511a8157b470c3499f660e26f87d002d → 4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c

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 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-20241224144532-cccddcf4511a8157b470c3499f660e26f87d002d";
411
+ var version = "4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c";
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
- definitions?: boolean | undefined;
52
- selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
53
- arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
54
51
  values?: boolean | undefined;
55
- fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
52
+ definitions?: boolean | undefined;
53
+ fields?: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[] | undefined;
54
+ selections?: ("FragmentDefinition" | "OperationDefinition")[] | undefined;
56
55
  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?: (graphql.OperationTypeNode | "fragment")[] | undefined;
69
+ ignore?: ("fragment" | graphql.OperationTypeNode)[] | undefined;
70
70
  }[]>;
71
71
  'match-document-filename': GraphQLESLintRule<{
72
72
  fragment?: (CaseStyle | "matchDocumentStyle") | {
@@ -74,6 +74,7 @@ declare const _default: {
74
74
  suffix?: string | undefined;
75
75
  prefix?: string | undefined;
76
76
  } | undefined;
77
+ fileExtension?: ".gql" | ".graphql" | undefined;
77
78
  query?: (CaseStyle | "matchDocumentStyle") | {
78
79
  style?: (CaseStyle | "matchDocumentStyle") | undefined;
79
80
  suffix?: string | undefined;
@@ -89,10 +90,11 @@ declare const _default: {
89
90
  suffix?: string | undefined;
90
91
  prefix?: string | undefined;
91
92
  } | 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;
96
98
  types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
97
99
  style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
98
100
  suffix?: string | undefined;
@@ -109,8 +111,6 @@ declare const _default: {
109
111
  requiredSuffixes?: string[] | undefined;
110
112
  ignorePattern?: string | undefined;
111
113
  } | undefined;
112
- allowLeadingUnderscore?: boolean | undefined;
113
- allowTrailingUnderscore?: boolean | undefined;
114
114
  }[]>;
115
115
  'no-anonymous-operations': GraphQLESLintRule;
116
116
  'no-deprecated': GraphQLESLintRule<[], true>;
@@ -141,7 +141,6 @@ declare const _default: {
141
141
  }[]>;
142
142
  'require-deprecation-reason': GraphQLESLintRule;
143
143
  'require-description': GraphQLESLintRule<{
144
- types?: true | undefined;
145
144
  OperationDefinition?: boolean | undefined;
146
145
  ScalarTypeDefinition?: boolean | undefined;
147
146
  ObjectTypeDefinition?: boolean | undefined;
@@ -153,6 +152,7 @@ declare const _default: {
153
152
  EnumValueDefinition?: boolean | undefined;
154
153
  InputObjectTypeDefinition?: boolean | undefined;
155
154
  DirectiveDefinition?: boolean | undefined;
155
+ types?: true | undefined;
156
156
  rootField?: true | undefined;
157
157
  ignoredSelectors?: string[] | undefined;
158
158
  }[]>;
package/cjs/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.4.0-alpha-20241224144532-cccddcf4511a8157b470c3499f660e26f87d002d";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c";
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: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[];
22
+ readonly enum: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[];
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: ("OperationDefinition" | "FragmentDefinition")[];
35
+ readonly enum: ("FragmentDefinition" | "OperationDefinition")[];
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: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[];
48
+ readonly enum: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[];
49
49
  };
50
50
  readonly description: "Arguments of fields and directives.";
51
51
  readonly type: "array";
@@ -11,12 +11,12 @@ import 'json-schema-to-ts';
11
11
 
12
12
  declare const rules: {
13
13
  alphabetize: GraphQLESLintRule<{
14
- definitions?: boolean | undefined;
15
- selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
16
- arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
17
14
  values?: boolean | undefined;
18
- fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
15
+ definitions?: boolean | undefined;
16
+ fields?: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[] | undefined;
17
+ selections?: ("FragmentDefinition" | "OperationDefinition")[] | undefined;
19
18
  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?: (graphql.OperationTypeNode | "fragment")[] | undefined;
32
+ ignore?: ("fragment" | graphql.OperationTypeNode)[] | undefined;
33
33
  }[]>;
34
34
  'match-document-filename': GraphQLESLintRule<{
35
35
  fragment?: (CaseStyle | "matchDocumentStyle") | {
@@ -37,6 +37,7 @@ declare const rules: {
37
37
  suffix?: string | undefined;
38
38
  prefix?: string | undefined;
39
39
  } | undefined;
40
+ fileExtension?: ".gql" | ".graphql" | undefined;
40
41
  query?: (CaseStyle | "matchDocumentStyle") | {
41
42
  style?: (CaseStyle | "matchDocumentStyle") | undefined;
42
43
  suffix?: string | undefined;
@@ -52,10 +53,11 @@ declare const rules: {
52
53
  suffix?: string | undefined;
53
54
  prefix?: string | undefined;
54
55
  } | 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;
59
61
  types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
60
62
  style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
61
63
  suffix?: string | undefined;
@@ -72,8 +74,6 @@ declare const rules: {
72
74
  requiredSuffixes?: string[] | undefined;
73
75
  ignorePattern?: string | undefined;
74
76
  } | undefined;
75
- allowLeadingUnderscore?: boolean | undefined;
76
- allowTrailingUnderscore?: boolean | undefined;
77
77
  }[]>;
78
78
  'no-anonymous-operations': GraphQLESLintRule;
79
79
  'no-deprecated': GraphQLESLintRule<[], true>;
@@ -104,7 +104,6 @@ declare const rules: {
104
104
  }[]>;
105
105
  'require-deprecation-reason': GraphQLESLintRule;
106
106
  'require-description': GraphQLESLintRule<{
107
- types?: true | undefined;
108
107
  OperationDefinition?: boolean | undefined;
109
108
  ScalarTypeDefinition?: boolean | undefined;
110
109
  ObjectTypeDefinition?: boolean | undefined;
@@ -116,6 +115,7 @@ declare const rules: {
116
115
  EnumValueDefinition?: boolean | undefined;
117
116
  InputObjectTypeDefinition?: boolean | undefined;
118
117
  DirectiveDefinition?: boolean | undefined;
118
+ types?: true | undefined;
119
119
  rootField?: true | undefined;
120
120
  ignoredSelectors?: string[] | undefined;
121
121
  }[]>;
package/esm/meta.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = "4.4.0-alpha-20241224144532-cccddcf4511a8157b470c3499f660e26f87d002d";
1
+ const version = "4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c";
2
2
  export {
3
3
  version
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "4.4.0-alpha-20241224144532-cccddcf4511a8157b470c3499f660e26f87d002d",
3
+ "version": "4.4.0-alpha-20241224144627-0f31ac0a8080a4c40674c20e6fffe1257691375c",
4
4
  "type": "module",
5
5
  "description": "GraphQL plugin for ESLint",
6
6
  "repository": "https://github.com/dimaMachina/graphql-eslint",