-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
52 lines (47 loc) · 1.15 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettierx"],
"extends": [
"standardize",
"standardize/typescript",
"plugin:prettierx/standardize-bundle",
"plugin:prettierx/@typescript-eslint"
],
"rules": {
"array-callback-return": 2,
"block-scoped-var": 2,
"complexity": [2, 6], // default is 20
"consistent-return": 2,
"consistent-this": [2, "_self"],
"guard-for-in": 1,
"max-depth": [2, 3],
"max-lines-per-function": [
2,
{ "max": 99, "skipBlankLines": true, "skipComments": true }
],
"max-lines": [
2,
{ "max": 250, "skipBlankLines": true, "skipComments": true }
],
"max-nested-callbacks": [2, 3], // default is 10
"max-params": [2, 3],
"max-statements": [2, 20],
"no-catch-shadow": 2,
"no-label-var": 2,
"no-native-reassign": 2,
"no-var": 2
},
"overrides": [
{
"files": ["**/test/**/*.{js,ts}"],
// https://github.com/sindresorhus/globals/blob/master/globals.json
"env": {
"mocha": true
},
"rules": {
"import/no-unresolved": 0
}
}
]
}