File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-eslint/eslint-plugin ' : patch
3
+ ---
4
+
5
+ make ` RuleDocsInfo ` type optional
Original file line number Diff line number Diff line change 11
11
releaseScript : release
12
12
nodeVersion : 18
13
13
secrets :
14
- githubToken : ${{ secrets.GUILD_BOT_TOKEN }}
14
+ githubToken : ${{ secrets.GITHUB_TOKEN }}
15
15
npmToken : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 13
13
with :
14
14
script : yarn ci:lint
15
15
secrets :
16
- githubToken : ${{ secrets.GUILD_BOT_TOKEN }}
16
+ githubToken : ${{ secrets.GITHUB_TOKEN }}
17
17
18
18
typecheck :
19
19
name : typecheck / graphql v${{matrix.graphql_version}}
Original file line number Diff line number Diff line change @@ -52,11 +52,8 @@ export type GraphQLESLintRuleContext<Options = any[]> = Omit<
52
52
53
53
export type CategoryType = 'Schema' | 'Operations' ;
54
54
55
- export type RuleDocsInfo < T > = {
56
- description : string ;
55
+ export type RuleDocsInfo < T > = Omit < Rule . RuleMetaData [ 'docs' ] , 'category' | 'suggestion' > & {
57
56
category : CategoryType | CategoryType [ ] ;
58
- recommended ?: boolean ;
59
- url : string ;
60
57
requiresSchema ?: true ;
61
58
requiresSiblings ?: true ;
62
59
examples ?: {
@@ -77,7 +74,7 @@ export type RuleDocsInfo<T> = {
77
74
export type GraphQLESLintRule < Options = any [ ] , WithTypeInfo extends boolean = false > = {
78
75
create ( context : GraphQLESLintRuleContext < Options > ) : GraphQLESLintRuleListener < WithTypeInfo > ;
79
76
meta : Omit < Rule . RuleMetaData , 'docs' > & {
80
- docs : RuleDocsInfo < Options > ;
77
+ docs ? : RuleDocsInfo < Options > ;
81
78
} ;
82
79
} ;
83
80
You can’t perform that action at this time.
0 commit comments