Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 59408fe

Browse files
committed
Update graphql-eslint rules
1 parent 9afc406 commit 59408fe

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/rules/graphql-eslint/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import type { RequireFieldOfTypeQueryInMutationResultRule } from './require-fiel
4444
import type { RequireIdWhenAvailableRule } from './require-id-when-available';
4545
import type { RequireImportFragmentRule } from './require-import-fragment';
4646
import type { RequireNullableFieldsWithOneofRule } from './require-nullable-fields-with-oneof';
47+
import type { RequireNullableResultInRootRule } from './require-nullable-result-in-root';
4748
import type { RequireTypePatternWithOneofRule } from './require-type-pattern-with-oneof';
4849
import type { ScalarLeafsRule } from './scalar-leafs';
4950
import type { SelectionSetDepthRule } from './selection-set-depth';
@@ -125,6 +126,7 @@ export type GraphQLRules = ExecutableDefinitionsRule &
125126
RequireIdWhenAvailableRule &
126127
RequireImportFragmentRule &
127128
RequireNullableFieldsWithOneofRule &
129+
RequireNullableResultInRootRule &
128130
RequireTypePatternWithOneofRule &
129131
SelectionSetDepthRule &
130132
StrictIdInTypesRule &
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { RuleConfig } from '../rule-config';
2+
3+
/**
4+
* Require nullable fields in root types.
5+
*
6+
* @see [require-nullable-result-in-root](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-nullable-result-in-root.md)
7+
*/
8+
export type RequireNullableResultInRootRuleConfig = RuleConfig<[]>;
9+
10+
/**
11+
* Require nullable fields in root types.
12+
*
13+
* @see [require-nullable-result-in-root](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-nullable-result-in-root.md)
14+
*/
15+
export interface RequireNullableResultInRootRule {
16+
/**
17+
* Require nullable fields in root types.
18+
*
19+
* @see [require-nullable-result-in-root](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-nullable-result-in-root.md)
20+
*/
21+
'@graphql-eslint/require-nullable-result-in-root': RequireNullableResultInRootRuleConfig;
22+
}

0 commit comments

Comments
 (0)