Skip to content

Commit 92b87a9

Browse files
authored
Update avoid-operation-name-prefix.md (#204)
1 parent 7722856 commit 92b87a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/avoid-operation-name-prefix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Allow you to enforce and avoid operation name prefix, useful if you wish to avoi
1010
Examples of **incorrect** code for this rule:
1111

1212
```graphql
13-
# eslint @graphql-eslint/avoid-operation-name-prefix: ["error", { keywords: "get" }]
13+
# eslint @graphql-eslint/avoid-operation-name-prefix: ["error", { keywords: ["get"] }]
1414

1515
query getUserDetails {
1616
# ...
@@ -20,7 +20,7 @@ query getUserDetails {
2020
Examples of **correct** code for this rule:
2121

2222
```graphql
23-
# eslint @graphql-eslint/avoid-operation-name-prefix: ["error", { keywords: "get" }]
23+
# eslint @graphql-eslint/avoid-operation-name-prefix: ["error", { keywords: ["get"] }]
2424

2525
query userDetails {
2626
# ...

0 commit comments

Comments
 (0)