-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
53 lines (52 loc) · 1.47 KB
/
.eslintrc
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"react-app",
"react-app/jest",
"prettier"
],
"plugins": ["@typescript-eslint", "@graphql-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"testing-library/prefer-screen-queries": "error",
"testing-library/no-manual-cleanup": "error",
"testing-library/prefer-wait-for": "error",
"testing-library/no-await-sync-events": "error"
},
// Overrides for GraphQL Eslint plugin
// https://github.com/dotansimha/graphql-eslint
"overrides": [
{
"files": ["*.tsx", "*.ts", "*.jsx", "*.js"],
"processor": "@graphql-eslint/graphql"
},
{
"files": ["*.graphql"],
"parser": "@graphql-eslint/eslint-plugin",
"parserOptions": {
"operations": ["./src/**/*.tsx"]
},
"plugins": ["@graphql-eslint"],
"rules": {
"@graphql-eslint/require-id-when-available": [
"error",
{
"fieldName": "_id"
}
],
"@graphql-eslint/validate-against-schema": "error",
"@graphql-eslint/no-anonymous-operations": "error",
"@graphql-eslint/no-operation-name-suffix": "warn",
"@graphql-eslint/avoid-duplicate-fields": "warn",
"@graphql-eslint/avoid-operation-name-prefix": [
"warn",
{
"keywords": ["get"]
}
]
}
}
],
"ignorePatterns": ["__generated__"]
}