-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
92 lines (92 loc) · 1.75 KB
/
.eslintrc.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"root": true,
"extends": ["eslint:recommended", "airbnb-base", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": [
"jest",
"@typescript-eslint",
"import"
],
"env": {
"jest/globals": true
},
"globals": {
"window": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/extensions": [
".ts",
".js",
".json"
],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ""]
},
"typescript": {
// always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
"alwaysTryTypes": true,
// use an array
"project": [
"./tsconfig.json"
]
}
}
},
"rules": {
"semi": [
2,
"never"
],
"comma-dangle": [
"error",
"never"
],
"no-param-reassign": [
0
],
"func-names": [
0
],
"brace-style": [
0
],
"import/prefer-default-export": [0],
"import/no-extraneous-dependencies": [
0
],
"import/no-unresolved": [
2
],
"import/extensions": [
2,
"never"
],
"no-restricted-globals": [
2,
"never"
],
"no-plusplus": [
2,
{
"allowForLoopAfterthoughts": true
}
],
"max-len": [
2,
{
"code": 150,
"ignoreComments": true
}
],
"@typescript-eslint/no-explicit-any": [0],
"@typescript-eslint/ban-ts-comment": [0],
"no-shadow": [0],
"@typescript-eslint/no-shadow": [2],
"arrow-body-style": [0],
"linebreak-style": ["error", "unix"]
}
}