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 1111 releaseScript : release
1212 nodeVersion : 18
1313 secrets :
14- githubToken : ${{ secrets.GUILD_BOT_TOKEN }}
14+ githubToken : ${{ secrets.GITHUB_TOKEN }}
1515 npmToken : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1313 with :
1414 script : yarn ci:lint
1515 secrets :
16- githubToken : ${{ secrets.GUILD_BOT_TOKEN }}
16+ githubToken : ${{ secrets.GITHUB_TOKEN }}
1717
1818 typecheck :
1919 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<
5252
5353export type CategoryType = 'Schema' | 'Operations' ;
5454
55- export type RuleDocsInfo < T > = {
56- description : string ;
55+ export type RuleDocsInfo < T > = Omit < Rule . RuleMetaData [ 'docs' ] , 'category' | 'suggestion' > & {
5756 category : CategoryType | CategoryType [ ] ;
58- recommended ?: boolean ;
59- url : string ;
6057 requiresSchema ?: true ;
6158 requiresSiblings ?: true ;
6259 examples ?: {
@@ -77,7 +74,7 @@ export type RuleDocsInfo<T> = {
7774export type GraphQLESLintRule < Options = any [ ] , WithTypeInfo extends boolean = false > = {
7875 create ( context : GraphQLESLintRuleContext < Options > ) : GraphQLESLintRuleListener < WithTypeInfo > ;
7976 meta : Omit < Rule . RuleMetaData , 'docs' > & {
80- docs : RuleDocsInfo < Options > ;
77+ docs ? : RuleDocsInfo < Options > ;
8178 } ;
8279} ;
8380
You can’t perform that action at this time.
0 commit comments