Skip to content

Commit 1afa407

Browse files
committed
aa
1 parent f34e90e commit 1afa407

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.changeset/six-rice-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': minor
3+
---
4+
5+
feat(`require-selections` rule): introduce new option `requireAllFields` to require all values of `fieldName: string[]` option

packages/plugin/src/rules/require-selections/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const schema = {
4444
},
4545
requireAllFields: {
4646
type: 'boolean',
47+
description: 'Whether all fields of `fieldName` option must be included.'
4748
}
4849
},
4950
},

website/content/rules/require-selections.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ The object must be one of the following types:
8080

8181
Default: `"id"`
8282

83+
### `requireAllFields` (boolean)
84+
85+
Whether all fields of `fieldName` option must be included.
86+
8387
---
8488

8589
# Sub Schemas

0 commit comments

Comments
 (0)