Skip to content

Commit 3adb3e6

Browse files
authored
docs: fix syntax on require-description example (#165)
1 parent 6b28e62 commit 3adb3e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/require-description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This rule requires descriptions to be present in your type definitions files.
1212
Examples of **incorrect** code for this rule:
1313

1414
```graphql
15-
# eslint @graphql-eslint/require-description: ["error", { on: ["ObjectTypeDefinition", "FieldDefinition" }]
15+
# eslint @graphql-eslint/require-description: ["error", { on: ["ObjectTypeDefinition", "FieldDefinition"] }]
1616

1717
type someTypeName {
1818
name: String
@@ -22,7 +22,7 @@ type someTypeName {
2222
Examples of **correct** code for this rule:
2323

2424
```graphql
25-
# eslint @graphql-eslint/require-description: ["error", { on: ["ObjectTypeDefinition", "FieldDefinition" }]
25+
# eslint @graphql-eslint/require-description: ["error", { on: ["ObjectTypeDefinition", "FieldDefinition"] }]
2626

2727
"""
2828
Some type description

0 commit comments

Comments
 (0)