This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
81 lines (81 loc) · 2.1 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true,
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/no-empty-interface": "off",
"accessor-pairs": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"complexity": "error",
"curly": [
"error",
"multi-or-nest"
],
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"eqeqeq": [
"error",
"always"
],
"max-classes-per-file": [
"error",
2
],
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": "error",
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-duplicate-imports": "error",
"no-useless-constructor": "error",
"no-useless-concat": "error",
"no-var": "error",
"no-use-before-define": "error",
"prefer-arrow-callback": "error",
"prefer-const": "warn",
"prefer-regex-literals": "warn",
"prefer-template": "error",
"prefer-spread": "warn",
"sort-imports": "warn",
"yoda": "warn",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0
}
]
}
}