-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
74 lines (74 loc) · 2.12 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
{
"globals": {
"process": true
},
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:promise/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"import/first": "off",
"semi": ["error", "never"],
"import/no-duplicates": "off",
"no-trailing-spaces": "off",
"no-unused-vars": "warn",
"no-console": 0,
"func-names": 0,
"complexity": "off",
"no-multiple-empty-lines": ["error", { "max": 2 }],
"promise/avoid-new": "off",
"promise/always-return": "off",
"promise/no-callback-in-promise": "off",
"promise/catch-or-return": "warn",
"standard/no-callback-literal": "off",
"quote-props": ["error", "consistent"],
"no-plusplus": 0,
"quotes": ["error", "double"],
"space-before-function-paren": 0,
"eol-last": "warn",
"spaced-comment": 0,
"key-spacing": 0,
"comma-dangle": ["warn", "only-multiline"],
"curly": "off",
"valid-jsdoc": [
"warn",
{
"requireReturn": false,
"requireParamDescription": false,
"requireParamType": false,
"requireReturnType": false
}
],
"max-len": ["error", { "code": 80, "comments": 140 }],
"indent": ["warn", 4, { "SwitchCase": 1 }],
"prefer-template": 2,
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"object-curly-spacing": 0,
"no-case-declarations": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none"
},
"singleline": {
"delimiter": "semi"
}
}
],
"@typescript-eslint/no-explicit-any": "off"
}
}