-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
63 lines (63 loc) · 2.25 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
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "2022",
"sourceType": "module"
},
"plugins": [
"chai-expect",
"mocha",
"promise",
"security"
],
"root": true,
"rules": {
"array-bracket-spacing": [ "warn", "always" ],
"brace-style": [ 2, "1tbs", { "allowSingleLine": true } ],
"camelcase": "off",
"chai-expect/missing-assertion": "error",
"chai-expect/terminating-properties": "warn",
"curly": [ "error", "all" ],
"eol-last": "error",
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"keyword-spacing": [ "error" ],
"linebreak-style": [ "error", "unix" ],
"max-len": [ "error", 200 ],
"no-case-declarations": "off",
"no-cond-assign": "off",
"no-console": "off",
"no-control-regex": "off",
"no-empty": "warn",
"no-inner-declarations": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error",
"no-unused-vars": "off",
"no-useless-escape": "warn",
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/avoid-new": "off",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"quotes": [ "error", "single" ],
"semi": [ "error", "always" ],
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "ignore", "asyncArrow": "always" }],
"space-in-parens": [ "error", "never" ],
"space-infix-ops": "error",
"space-unary-ops": [ "error", { "nonwords": false, "overrides": {} } ],
"valid-jsdoc": [ "warn", { "requireReturn": false, "requireReturnDescription": false } ]
}
}