@graphql-eslint/eslint-plugin 4.3.0-alpha-20241204113935-074a093b359d2947f263679eac8596958876a3b6 → 4.3.0-alpha-20241204114257-e01dcddc96c4363da10e4e9df8ad7e8de0849073

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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.3.0-alpha-20241204113935-074a093b359d2947f263679eac8596958876a3b6";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});const version = "4.3.0-alpha-20241204114257-e01dcddc96c4363da10e4e9df8ad7e8de0849073";
2
2
 
3
3
 
4
4
  exports.version = version;
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
- fields?: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[] | undefined;
55
- selections?: ("FragmentDefinition" | "OperationDefinition")[] | undefined;
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" | graphql.OperationTypeNode)[] | undefined;
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
@@ -1,4 +1,4 @@
1
- const version = "4.3.0-alpha-20241204113935-074a093b359d2947f263679eac8596958876a3b6";
1
+ const version = "4.3.0-alpha-20241204114257-e01dcddc96c4363da10e4e9df8ad7e8de0849073";
2
2
  export {
3
3
  version
4
4
  };
@@ -19,7 +19,7 @@ declare const schema: {
19
19
  readonly properties: {
20
20
  readonly fields: {
21
21
  readonly items: {
22
- readonly enum: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[];
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: ("FragmentDefinition" | "OperationDefinition")[];
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: ("Directive" | "DirectiveDefinition" | "Field" | "FieldDefinition")[];
48
+ readonly enum: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[];
49
49
  };
50
50
  readonly description: "Arguments of fields and directives.";
51
51
  readonly type: "array";
@@ -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
- fields?: ("InputObjectTypeDefinition" | "InterfaceTypeDefinition" | "ObjectTypeDefinition")[] | undefined;
18
- selections?: ("FragmentDefinition" | "OperationDefinition")[] | undefined;
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" | graphql.OperationTypeNode)[] | undefined;
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/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-20241204113935-074a093b359d2947f263679eac8596958876a3b6";
153
+ var version = "4.3.0-alpha-20241204114257-e01dcddc96c4363da10e4e9df8ad7e8de0849073";
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-20241204113935-074a093b359d2947f263679eac8596958876a3b6",
3
+ "version": "4.3.0-alpha-20241204114257-e01dcddc96c4363da10e4e9df8ad7e8de0849073",
4
4
  "type": "module",
5
5
  "description": "GraphQL plugin for ESLint",
6
6
  "repository": "https://github.com/dimaMachina/graphql-eslint",