-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc
41 lines (36 loc) · 1.05 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
{
"plugins": [
"unicorn",
"security",
"promise",
"es"
],
"extends": [
"standard",
"plugin:unicorn/recommended",
"plugin:security/recommended",
"plugin:promise/recommended"
],
"rules": {
"func-style": [1, "expression", { "allowArrowFunctions": true }],
"no-extra-semi": 2,
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"no-var": 2,
"object-shorthand": [2, "properties"],
"semi": [2, "always"],
"node/no-deprecated-api": 1,
"unicorn/catch-error-name": ["error", {"name": "err"}],
"unicorn/consistent-function-scoping": 0,
"unicorn/explicit-length-check": 0,
"unicorn/filename-case": 0,
"unicorn/prefer-add-event-listener": 1,
"unicorn/prefer-exponentiation-operator": 0,
"unicorn/prefer-spread": 1,
"unicorn/prevent-abbreviations": 0,
"security/detect-object-injection": 0,
"security/detect-unsafe-regex": 0,
"promise/always-return": 0,
"promise/no-callback-in-promise": 0,
"promise/no-nesting": 0,
"es/no-exponential-operators": 1
}}