This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 51
51
" tsconfig.json"
52
52
],
53
53
"devDependencies" : {
54
- "@graphql-eslint/eslint-plugin" : " ~3.15.0 " ,
54
+ "@graphql-eslint/eslint-plugin" : " ~3.16.1 " ,
55
55
"@intlify/eslint-plugin-vue-i18n" : " ~2.0.0" ,
56
56
"@poppinss/cliui" : " ~3.0.5" ,
57
57
"@types/eslint" : " ~8.21.1" ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import type { RequireDeprecationReasonRule } from './require-deprecation-reason'
42
42
import type { RequireDescriptionRule } from './require-description' ;
43
43
import type { RequireFieldOfTypeQueryInMutationResultRule } from './require-field-of-type-query-in-mutation-result' ;
44
44
import type { RequireIdWhenAvailableRule } from './require-id-when-available' ;
45
+ import type { RequireImportFragmentRule } from './require-import-fragment' ;
45
46
import type { RequireNullableFieldsWithOneofRule } from './require-nullable-fields-with-oneof' ;
46
47
import type { RequireTypePatternWithOneofRule } from './require-type-pattern-with-oneof' ;
47
48
import type { ScalarLeafsRule } from './scalar-leafs' ;
@@ -122,6 +123,7 @@ export type GraphQLRules = ExecutableDefinitionsRule &
122
123
RequireDescriptionRule &
123
124
RequireFieldOfTypeQueryInMutationResultRule &
124
125
RequireIdWhenAvailableRule &
126
+ RequireImportFragmentRule &
125
127
RequireNullableFieldsWithOneofRule &
126
128
RequireTypePatternWithOneofRule &
127
129
SelectionSetDepthRule &
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config' ;
2
+
3
+ /**
4
+ * Require fragments to be imported via an import expression.
5
+ *
6
+ * @see [require-import-fragment](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-import-fragment.md)
7
+ */
8
+ export type RequireImportFragmentRuleConfig = RuleConfig < [ ] > ;
9
+
10
+ /**
11
+ * Require fragments to be imported via an import expression.
12
+ *
13
+ * @see [require-import-fragment](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-import-fragment.md)
14
+ */
15
+ export interface RequireImportFragmentRule {
16
+ /**
17
+ * Require fragments to be imported via an import expression.
18
+ *
19
+ * @see [require-import-fragment](https://github.com/B2o5T/graphql-eslint/blob/master/docs/rules/require-import-fragment.md)
20
+ */
21
+ '@graphql-eslint/require-import-fragment' : RequireImportFragmentRuleConfig ;
22
+ }
You can’t perform that action at this time.
0 commit comments