/
.eslintrc.json
60 lines (60 loc) · 1.53 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"no-debugger": "off",
"quote-props": "off",
"no-trailing-spaces": "off",
"semi": [2, "always", {"omitLastInOneLineBlock": true}],
"no-undef": "off",
"no-use-before-define": "off",
"spaced-comment": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/semi": [2, "always", {"omitLastInOneLineBlock": true}],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-module-boundary-types": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error", {
"before": false,
"after": true
}],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/space-before-function-paren": ["error", "always"]
}
}
]
}