@graphql-eslint/eslint-plugin 3.11.1-alpha-20220926102745-dd5901a → 3.11.1-alpha-20220926112156-14d4be3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "3.11.1-alpha-20220926102745-dd5901a",
3
+ "version": "3.11.1-alpha-20220926112156-14d4be3",
4
4
  "description": "GraphQL plugin for ESLint",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
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: RuleDocsInfo<Options>;
68
+ docs?: RuleDocsInfo<Options>;
72
69
  };
73
70
  };
74
71
  export declare type ValueOf<T> = T[keyof T];