-
Notifications
You must be signed in to change notification settings - Fork 111
/
.eslintrc.json
58 lines (58 loc) · 1.31 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
{
"plugins": ["@typescript-eslint", "unicorn"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"unicorn/no-null": "warn",
"unicorn/no-for-loop": "error",
"unicorn/no-array-for-each": "warn",
"unicorn/no-lonely-if": "warn",
"unicorn/prefer-array-find": "warn",
"unicorn/prefer-array-some": "warn",
"unicorn/prefer-at": "warn",
"unicorn/prefer-includes": "warn",
"unicorn/prefer-object-from-entries": "warn",
"unicorn/prefer-spread": "warn",
"unicorn/prefer-string-slice": "warn",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-node-protocol": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": [
"error",
{
"allow": [
"debug",
"error",
"info",
"warn",
"dir",
"dirxml",
"table",
"trace",
"group",
"groupCollapsed",
"groupEnd",
"clear",
"count",
"countReset",
"assert",
"profile",
"profileEnd",
"time",
"timeLog",
"timeEnd",
"timeStamp",
"context",
"createTask",
"memory"
]
}
],
"@typescript-eslint/no-non-null-assertion": "warn"
}
}