-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
59 lines (59 loc) · 1.55 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
54
55
56
57
58
59
{
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.gql"],
"extends": "plugin:@graphql-eslint/schema-recommended",
"parserOptions": {
"schema": "./data/schema.graphql"
},
"rules": {
"@graphql-eslint/naming-convention": ["error", { "allowLeadingUnderscore": true }],
"@graphql-eslint/strict-id-in-types": [
"off",
{
"acceptedIdNames": ["id", "_id"],
"acceptedIdTypes": ["ID"],
"exceptions": { "types": ["Mutation"], "suffixes": ["Payload"] }
}
]
}
}
],
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"no-console": 2,
"arrow-body-style": 0,
"implicit-arrow-linebreak": 0,
"import/extensions": [0, "never", { "ts": "never" }],
"import/prefer-default-export": 0,
"no-underscore-dangle": "off",
"object-curly-newline": "off",
"indent": "off",
"@typescript-eslint/indent": ["error", 2],
"function-paren-newline": ["off", "never"],
"import/order": ["error", { "newlines-between": "always" }]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"eslint-import-resolver-typescript": true
},
"jest": {
"version": 27
}
},
"env": {
"jest/globals": true
}
}