-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
83 lines (83 loc) · 1.92 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
{
"root": true,
"plugins": ["@typescript-eslint", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
},
"rules": {
"complexity": ["warn"],
"curly": ["error"],
"default-case": ["error"],
"guard-for-in": ["error"],
"no-array-constructor": ["error"],
"no-else-return": [
"warn",
{
"allowElseIf": false
}
],
"no-implicit-coercion": ["warn"],
"no-lonely-if": ["error"],
"no-loop-func": ["error"],
"no-magic-numbers": ["warn"],
"no-nested-ternary": ["warn"],
"no-new-object": ["error"],
"no-param-reassign": ["warn"],
"no-process-env": ["error"],
"no-return-assign": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-unneeded-ternary": ["warn"],
"no-useless-call": ["error"],
"no-useless-computed-key": ["warn"],
"no-useless-rename": ["warn"],
"no-warning-comments": [
"error",
{
"terms": ["fixme", "fix"]
}
],
"object-shorthand": ["warn"],
"prefer-const": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["warn"],
"prefer-template": ["warn"],
"radix": ["error"],
"spaced-comment": ["warn"],
"yoda": ["warn"],
"@typescript-eslint/array-type": [
"error",
{
"array-simple": true
}
],
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowString": false,
"allowNumber": false
}
]
},
"overrides": [
{
"files": ["tests/**/*.ts"],
"rules": {
"no-magic-numbers": "off"
}
}
]
}