-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
.eslintrc.json
118 lines (118 loc) · 2.42 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"env": {
"browser": false,
"commonjs": false,
"es2022": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
"tab"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-undef": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-extra-parens": "warn",
"block-scoped-var": "warn",
"curly": "warn",
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"dot-location": [
"warn",
"property"
],
"eqeqeq": "error",
"guard-for-in": "error",
"no-else-return": "error",
"no-magic-numbers": "off",
"no-multi-spaces": "warn",
"no-return-assign": "error",
"no-self-compare": "error",
"no-useless-return": "error",
"require-await": "error",
"yoda": "warn",
"block-spacing": "warn",
"brace-style": [
"warn",
"stroustrup"
],
"camelcase": "warn",
"comma-dangle": "warn",
"func-call-spacing": "warn",
"key-spacing": "warn",
"keyword-spacing": "error",
"lines-between-class-members": "warn",
"max-depth": [
"warn",
5
],
"max-len": [
"warn",
200
],
"max-lines": [
"off",
1000
],
"max-lines-per-function": "off",
"max-params": [
"warn",
6
],
"new-cap": "warn",
"new-parens": "warn",
"newline-per-chained-call": [
"warn"
],
"no-lonely-if": "warn",
"no-multiple-empty-lines": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "error",
"object-curly-newline": "warn",
"operator-assignment": "warn",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"space-infix-ops": "warn",
"spaced-comment": "warn",
"switch-colon-spacing": "warn",
"arrow-body-style": "warn",
"arrow-spacing": "warn",
"no-confusing-arrow": "warn",
"no-duplicate-imports": "error",
"no-var": "error",
"prefer-const": "warn",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"capitalized-comments": "error",
"consistent-return": "error",
"dot-notation": "error",
"space-before-blocks": "error"
}
}