You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Also, make sure you have `graphql` dependency in your project.
46
46
47
47
### Configuration
48
48
49
-
> Note: This plugin doesn't activate any rule by default at the moment, we are currently thinking of the right rules to be the "recommended" and the default set. Until then, please make sure to active rules based on your needs.
50
-
51
49
To get started, create an override configuration for your ESLint, while applying it to to `.graphql` files (do that even if you are declaring your operations in code files):
52
50
53
51
```json
@@ -166,7 +164,36 @@ You can find a list of [ESLint directives here](https://eslint.org/docs/2.13.1/u
// the following is required for `eslint-plugin-prettier@<=3.4.0` temporarily
@@ -204,16 +224,16 @@ module.exports = {
204
224
{
205
225
files: ['*.js/*.graphql'],
206
226
rules: {
207
-
'prettier/prettier': 0
208
-
}
227
+
'prettier/prettier':'off',
228
+
},
209
229
},
210
230
],
211
231
};
212
232
```
213
233
214
234
You can take [`examples/prettier`](examples/prettier/.eslintrc.js) as example.
215
235
216
-
It could be better to remove the unnecessary parser setting if https://github.com/prettier/eslint-plugin-prettier/pull/413 and https://github.com/prettier/eslint-plugin-prettier/pull/415 been merged and released.
236
+
It could be better to remove the unnecessary `*.js/*.graphql` overrides setting if <https://github.com/prettier/eslint-plugin-prettier/pull/415> will be merged and released.
217
237
218
238
Please help to vote up if you want to speed up the progress.
0 commit comments