This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
forked from bee-queue/bee-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
81 lines (81 loc) · 2.13 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
{
"env": {
"node": true,
"es6": true
},
"extends": ["plugin:prettier/recommended"],
"overrides": [
{
"files": ["lib/**"],
"rules": {
"max-len": "error"
}
},
{
"files": ["benchmark/**", "examples/**"],
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"no-console": "off"
}
},
{
"files": ["test/**"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"handle-callback-err": "warn",
"no-shadow": "off",
"no-warning-comments": "off"
}
}
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"camelcase": "error",
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "self"],
"curly": ["warn", "multi-line"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"key-spacing": "warn",
"new-cap": ["error", {"capIsNew": false}],
"no-console": "error",
"no-floating-decimal": "error",
"no-inner-declarations": "error",
"no-mixed-spaces-and-tabs": "error",
"no-redeclare": "error",
"no-shadow": "warn",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-underscore-dangle": "off",
"no-unused-vars": ["error", {"vars": "all", "args": "after-used"}],
"no-use-before-define": ["error", "nofunc"],
"no-var": "error",
"no-warning-comments": [
"warn",
{"terms": ["todo"], "location": "anywhere"}
],
"object-curly-spacing": ["error", "never"],
"prefer-const": ["error", {"destructuring": "all"}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{"anonymous": "always", "named": "never"}
],
"space-in-parens": "error",
"space-infix-ops": "error",
"strict": "off"
}
}