Skip to content

Commit 019e3fb

Browse files
authored
Update README.md
1 parent 3cc82b8 commit 019e3fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ To get started, create an override configuration for your ESLint, while applying
5656
"parser": "@graphql-eslint/eslint-plugin",
5757
"plugins": ["@graphql-eslint"],
5858
"rules": {
59+
"eol-last": "off",
60+
"prettier/prettier": "off"
5961
...
6062
}
6163
}
@@ -76,12 +78,17 @@ If you are using code files to store your GraphQL schema or your GraphQL operati
7678
"files": ["*.graphql"],
7779
"parser": "@graphql-eslint/eslint-plugin",
7880
"plugins": ["@graphql-eslint"],
79-
"rules": { ... }
81+
"rules": {
82+
"eol-last": "off",
83+
"prettier/prettier": "off"
84+
}
8085
}
8186
]
8287
}
8388
```
8489

90+
> Note: Make sure to disable `eol-last` and `prettier/prettier` - otherwise, you might get an error (see https://github.com/dotansimha/graphql-eslint/issues/88).
91+
8592
#### Extended linting rules with GraphQL Schema
8693

8794
If you are using [`graphql-config`](https://graphql-config.com/) - you are good to go. This package integrates with it automatically, and will use it to load your schema!

0 commit comments

Comments
 (0)