-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
97 lines (97 loc) · 1.94 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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"standard"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"warnOnUnsupportedTypeScriptVersion": false,
"project": [
"./tsconfig.json"
],
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"prefer-promise-reject-errors": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-floating-promises": [
"error"
],
"indent": "off",
"no-use-before-define": [
"off",
{
"functions": false,
"classes": false,
"variables": true
}
],
"object-curly-spacing": [
"error",
"always",
{
"objectsInObjects": false,
"arraysInObjects": false
}
],
"no-useless-constructor": "warn",
"no-trailing-spaces": "off",
"no-multiple-empty-lines": "off",
"no-return-assign": "off",
"promise/param-names": "off",
"spaced-comment": "off",
"key-spacing": [
"error",
{
"afterColon": true
}
],
"quotes": [
"error",
"double"
],
"quote-props": "off",
"camelcase": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-unused-expressions": "off",
"@typescript-eslint/type-annotation-spacing": [
"error",
{
"after": false
}
],
"space-before-function-paren": [
"error",
"never"
],
"eqeqeq": "off",
"@typescript-eslint/indent": [
"error",
2
],
"no-empty": "off",
"no-useless-return": "off",
"no-unreachable": "off",
"prefer-const": "off",
"space-in-parens": [
"error",
"never"
]
}
}