This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import type { RequireFieldOfTypeQueryInMutationResultRule } from './require-fiel
44
44
import type { RequireIdWhenAvailableRule } from './require-id-when-available' ;
45
45
import type { RequireImportFragmentRule } from './require-import-fragment' ;
46
46
import type { RequireNullableFieldsWithOneofRule } from './require-nullable-fields-with-oneof' ;
47
+ import type { RequireNullableResultInRootRule } from './require-nullable-result-in-root' ;
47
48
import type { RequireTypePatternWithOneofRule } from './require-type-pattern-with-oneof' ;
48
49
import type { ScalarLeafsRule } from './scalar-leafs' ;
49
50
import type { SelectionSetDepthRule } from './selection-set-depth' ;
@@ -125,6 +126,7 @@ export type GraphQLRules = ExecutableDefinitionsRule &
125
126
RequireIdWhenAvailableRule &
126
127
RequireImportFragmentRule &
127
128
RequireNullableFieldsWithOneofRule &
129
+ RequireNullableResultInRootRule &
128
130
RequireTypePatternWithOneofRule &
129
131
SelectionSetDepthRule &
130
132
StrictIdInTypesRule &
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments