forked from dimaMachina/graphql-eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 985 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
extends: ['plugin:prettier/recommended'],
overrides: [
{
files: ['*.tsx', '*.ts', '*.jsx', '*.js'],
processor: '@graphql-eslint/graphql',
},
{
files: ['*.graphql'],
parser: '@graphql-eslint/eslint-plugin',
plugins: ['@graphql-eslint'],
// the following is required for `eslint-plugin-prettier@<=3.4.0` temporarily
// after https://github.com/prettier/eslint-plugin-prettier/pull/413
// been merged and released, it can be deleted safely
rules: {
'prettier/prettier': [
2,
{
parser: 'graphql',
},
],
},
},
// the following is required for `eslint-plugin-prettier@<=3.4.0` temporarily
// after https://github.com/prettier/eslint-plugin-prettier/pull/415
// been merged and released, it can be deleted safely
{
files: ['*.js/*.graphql'],
rules: {
'prettier/prettier': 0,
},
},
],
};