-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.25 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["alloy", "alloy/typescript"],
"root": true,
"rules": {
"curly": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"func-names": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-unneeded-ternary": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"object-shorthand": "error",
"no-undef": "off",
"max-params": ["error", 9],
"max-depth": ["error", 9],
"complexity": ["error", 50],
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit",
"overrides": {
"accessors": "no-public",
"constructors": "no-public",
"methods": "explicit",
"properties": "explicit",
"parameterProperties": "explicit"
}
}
]
}
}