@graphql-eslint/eslint-plugin 4.0.0-alpha-20230810155929-e89edf7 → 4.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/index.d.ts +0 -1
- package/cjs/rules/index.d.ts +14 -15
- package/esm/index.d.mts +0 -1
- package/esm/rules/index.d.mts +14 -15
- package/package.json +1 -1
package/cjs/index.d.ts
CHANGED
@@ -9,7 +9,6 @@ export { flatConfigs } from './flat-configs.js';
|
|
9
9
|
import './rules/require-description.js';
|
10
10
|
import 'graphql';
|
11
11
|
import 'graphql/language/ast.js';
|
12
|
-
import 'json-schema-to-ts/lib/types/type-utils/writable.js';
|
13
12
|
import 'estree';
|
14
13
|
import 'json-schema-to-ts';
|
15
14
|
import './siblings.js';
|
package/cjs/rules/index.d.ts
CHANGED
@@ -2,7 +2,6 @@ import { RuleOptions } from './require-description.js';
|
|
2
2
|
import { CaseStyle } from '../utils.js';
|
3
3
|
import * as graphql_language_ast_js from 'graphql/language/ast.js';
|
4
4
|
import { GraphQLESLintRule } from '../types.js';
|
5
|
-
import * as json_schema_to_ts_lib_types_type_utils_writable_js from 'json-schema-to-ts/lib/types/type-utils/writable.js';
|
6
5
|
import 'graphql';
|
7
6
|
import 'eslint';
|
8
7
|
import 'estree';
|
@@ -15,10 +14,10 @@ import 'graphql-config';
|
|
15
14
|
declare const rules: {
|
16
15
|
alphabetize: GraphQLESLintRule<{
|
17
16
|
definitions?: boolean | undefined;
|
18
|
-
selections?:
|
19
|
-
arguments?:
|
17
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
18
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
20
19
|
values?: boolean | undefined;
|
21
|
-
fields?:
|
20
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
22
21
|
variables?: boolean | undefined;
|
23
22
|
groups?: string[] | undefined;
|
24
23
|
}[]>;
|
@@ -32,26 +31,26 @@ declare const rules: {
|
|
32
31
|
checkMutations?: boolean | undefined;
|
33
32
|
}[]>;
|
34
33
|
'lone-executable-definition': GraphQLESLintRule<{
|
35
|
-
ignore?: ("fragment"
|
34
|
+
ignore?: (graphql_language_ast_js.OperationTypeNode | "fragment")[] | undefined;
|
36
35
|
}[]>;
|
37
36
|
'match-document-filename': GraphQLESLintRule<{
|
38
|
-
fragment?:
|
39
|
-
style?:
|
37
|
+
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
38
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
40
39
|
suffix?: string | undefined;
|
41
40
|
prefix?: string | undefined;
|
42
41
|
} | undefined;
|
43
|
-
mutation?:
|
44
|
-
style?:
|
42
|
+
mutation?: (CaseStyle | "matchDocumentStyle") | {
|
43
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
45
44
|
suffix?: string | undefined;
|
46
45
|
prefix?: string | undefined;
|
47
46
|
} | undefined;
|
48
|
-
subscription?:
|
49
|
-
style?:
|
47
|
+
subscription?: (CaseStyle | "matchDocumentStyle") | {
|
48
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
50
49
|
suffix?: string | undefined;
|
51
50
|
prefix?: string | undefined;
|
52
51
|
} | undefined;
|
53
|
-
query?:
|
54
|
-
style?:
|
52
|
+
query?: (CaseStyle | "matchDocumentStyle") | {
|
53
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
55
54
|
suffix?: string | undefined;
|
56
55
|
prefix?: string | undefined;
|
57
56
|
} | undefined;
|
@@ -59,8 +58,8 @@ declare const rules: {
|
|
59
58
|
}[]>;
|
60
59
|
'naming-convention': GraphQLESLintRule<{
|
61
60
|
[x: string]: unknown;
|
62
|
-
types?:
|
63
|
-
style?:
|
61
|
+
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
62
|
+
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
64
63
|
suffix?: string | undefined;
|
65
64
|
prefix?: string | undefined;
|
66
65
|
forbiddenPrefixes?: string[] | undefined;
|
package/esm/index.d.mts
CHANGED
@@ -9,7 +9,6 @@ export { flatConfigs } from './flat-configs.mjs';
|
|
9
9
|
import './rules/require-description.mjs';
|
10
10
|
import 'graphql';
|
11
11
|
import 'graphql/language/ast.js';
|
12
|
-
import 'json-schema-to-ts/lib/types/type-utils/writable.js';
|
13
12
|
import 'estree';
|
14
13
|
import 'json-schema-to-ts';
|
15
14
|
import './siblings.mjs';
|
package/esm/rules/index.d.mts
CHANGED
@@ -2,7 +2,6 @@ import { RuleOptions } from './require-description.mjs';
|
|
2
2
|
import { CaseStyle } from '../utils.mjs';
|
3
3
|
import * as graphql_language_ast_js from 'graphql/language/ast.js';
|
4
4
|
import { GraphQLESLintRule } from '../types.mjs';
|
5
|
-
import * as json_schema_to_ts_lib_types_type_utils_writable_js from 'json-schema-to-ts/lib/types/type-utils/writable.js';
|
6
5
|
import 'graphql';
|
7
6
|
import 'eslint';
|
8
7
|
import 'estree';
|
@@ -15,10 +14,10 @@ import 'graphql-config';
|
|
15
14
|
declare const rules: {
|
16
15
|
alphabetize: GraphQLESLintRule<{
|
17
16
|
definitions?: boolean | undefined;
|
18
|
-
selections?:
|
19
|
-
arguments?:
|
17
|
+
selections?: ("OperationDefinition" | "FragmentDefinition")[] | undefined;
|
18
|
+
arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[] | undefined;
|
20
19
|
values?: boolean | undefined;
|
21
|
-
fields?:
|
20
|
+
fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[] | undefined;
|
22
21
|
variables?: boolean | undefined;
|
23
22
|
groups?: string[] | undefined;
|
24
23
|
}[]>;
|
@@ -32,26 +31,26 @@ declare const rules: {
|
|
32
31
|
checkMutations?: boolean | undefined;
|
33
32
|
}[]>;
|
34
33
|
'lone-executable-definition': GraphQLESLintRule<{
|
35
|
-
ignore?: ("fragment"
|
34
|
+
ignore?: (graphql_language_ast_js.OperationTypeNode | "fragment")[] | undefined;
|
36
35
|
}[]>;
|
37
36
|
'match-document-filename': GraphQLESLintRule<{
|
38
|
-
fragment?:
|
39
|
-
style?:
|
37
|
+
fragment?: (CaseStyle | "matchDocumentStyle") | {
|
38
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
40
39
|
suffix?: string | undefined;
|
41
40
|
prefix?: string | undefined;
|
42
41
|
} | undefined;
|
43
|
-
mutation?:
|
44
|
-
style?:
|
42
|
+
mutation?: (CaseStyle | "matchDocumentStyle") | {
|
43
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
45
44
|
suffix?: string | undefined;
|
46
45
|
prefix?: string | undefined;
|
47
46
|
} | undefined;
|
48
|
-
subscription?:
|
49
|
-
style?:
|
47
|
+
subscription?: (CaseStyle | "matchDocumentStyle") | {
|
48
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
50
49
|
suffix?: string | undefined;
|
51
50
|
prefix?: string | undefined;
|
52
51
|
} | undefined;
|
53
|
-
query?:
|
54
|
-
style?:
|
52
|
+
query?: (CaseStyle | "matchDocumentStyle") | {
|
53
|
+
style?: (CaseStyle | "matchDocumentStyle") | undefined;
|
55
54
|
suffix?: string | undefined;
|
56
55
|
prefix?: string | undefined;
|
57
56
|
} | undefined;
|
@@ -59,8 +58,8 @@ declare const rules: {
|
|
59
58
|
}[]>;
|
60
59
|
'naming-convention': GraphQLESLintRule<{
|
61
60
|
[x: string]: unknown;
|
62
|
-
types?:
|
63
|
-
style?:
|
61
|
+
types?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | {
|
62
|
+
style?: ("camelCase" | "PascalCase" | "snake_case" | "UPPER_CASE") | undefined;
|
64
63
|
suffix?: string | undefined;
|
65
64
|
prefix?: string | undefined;
|
66
65
|
forbiddenPrefixes?: string[] | undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-eslint/eslint-plugin",
|
3
|
-
"version": "4.0.0-alpha
|
3
|
+
"version": "4.0.0-alpha.0",
|
4
4
|
"description": "GraphQL plugin for ESLint",
|
5
5
|
"repository": "https://github.com/B2o5T/graphql-eslint",
|
6
6
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|