-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
99 lines (99 loc) · 2.43 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["eslint-plugin-jsdoc"],
"rules": {
"arrow-body-style": "off",
"arrow-parens": ["off", "always"],
"comma-dangle": [
"error",
{
"objects": "always-multiline",
"arrays": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"complexity": [
"off",
{
"max": 20
}
],
"consistent-return": "error",
"constructor-super": "error",
"curly": "error",
"default-case": "off",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"guard-for-in": "warn",
"id-blacklist": "off",
"id-match": "off",
"jsdoc/check-alignment": "error",
"jsdoc/no-types": "off",
"linebreak-style": ["error", "unix"],
"max-classes-per-file": ["warn", 5],
"max-len": [
"warn",
{
"code": 90
}
],
"max-lines": ["off", 300],
"new-parens": "error",
"newline-per-chained-call": "off",
"no-bitwise": "off",
"no-caller": "error",
// "no-console": "error",
"no-debugger": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-this": "error",
"no-magic-numbers": "off",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "error",
"no-void": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-const": "error",
"prefer-spread": "error",
"prefer-object-spread": "error",
"prefer-template": "off",
"quote-props": ["error", "as-needed"],
"radix": "error",
"space-in-parens": ["error", "never"],
"spaced-comment": [
"error",
"always",
{
"markers": ["/"]
}
],
"use-isnan": "error",
"valid-typeof": "error",
"yoda": "error"
}
}