@graphql-eslint/eslint-plugin 3.11.1-alpha-20220926102745-dd5901a → 3.11.1-alpha-20220926112748-d1f7b62
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/package.json +1 -1
- package/types.d.ts +2 -5
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -46,11 +46,8 @@ export declare type GraphQLESLintRuleContext<Options = any[]> = Omit<Rule.RuleCo
|
|
46
46
|
parserServices?: ParserServices;
|
47
47
|
};
|
48
48
|
export declare type CategoryType = 'Schema' | 'Operations';
|
49
|
-
export declare type RuleDocsInfo<T> = {
|
50
|
-
description: string;
|
49
|
+
export declare type RuleDocsInfo<T> = Omit<Rule.RuleMetaData['docs'], 'category' | 'suggestion'> & {
|
51
50
|
category: CategoryType | CategoryType[];
|
52
|
-
recommended?: boolean;
|
53
|
-
url: string;
|
54
51
|
requiresSchema?: true;
|
55
52
|
requiresSiblings?: true;
|
56
53
|
examples?: {
|
@@ -68,7 +65,7 @@ export declare type RuleDocsInfo<T> = {
|
|
68
65
|
export declare type GraphQLESLintRule<Options = any[], WithTypeInfo extends boolean = false> = {
|
69
66
|
create(context: GraphQLESLintRuleContext<Options>): GraphQLESLintRuleListener<WithTypeInfo>;
|
70
67
|
meta: Omit<Rule.RuleMetaData, 'docs'> & {
|
71
|
-
docs
|
68
|
+
docs?: RuleDocsInfo<Options>;
|
72
69
|
};
|
73
70
|
};
|
74
71
|
export declare type ValueOf<T> = T[keyof T];
|