Skip to content

Commit bb82835

Browse files
authored
Apply suggestions from code review
1 parent 41eb454 commit bb82835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/content/rules/naming-convention.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type user {
3535
### Incorrect
3636

3737
```graphql
38-
# eslint @graphql-eslint/naming-convention: ['error', { FragmentDefinition: { style: 'PascalCase', forbiddenPatterns: ['/(^fragment)|(fragment$)/i'] } }]
38+
# eslint @graphql-eslint/naming-convention: ['error', { FragmentDefinition: { style: 'PascalCase', forbiddenPatterns: ['/fragment$/i'] } }]
3939

4040
fragment UserFragment on User {
4141
# ...
@@ -65,7 +65,7 @@ type User {
6565
### Correct
6666

6767
```graphql
68-
# eslint @graphql-eslint/naming-convention: ['error', { FragmentDefinition: { style: 'PascalCase', forbiddenPatterns: ['/(^fragment)|(fragment$)/i'] } }]
68+
# eslint @graphql-eslint/naming-convention: ['error', { FragmentDefinition: { style: 'PascalCase', forbiddenPatterns: ['/fragment$/i'] } }]
6969

7070
fragment UserFields on User {
7171
# ...

0 commit comments

Comments
 (0)