forked from BitGo/BitGoJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
73 lines (73 loc) · 2.87 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"app": true, // BitGo side-effect from testutil
"ethUtil": true, // BitGo side-effect from testutil
"requireCommon": true
},
//"extends": "eslint:recommended", //possibly to be added in the future
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": 0}],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"eqeqeq": ["warn", "always"],
"curly": ["error", "multi-line"],
"no-extra-boolean-cast": "off",
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
"object-curly-spacing": ["error", "always", {"objectsInObjects": true, "arraysInObjects": true}],
"array-bracket-spacing": ["error", "never"],
"require-yield": "off",
"func-call-spacing": ["error", "never"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"quote-props": ["error", "as-needed"],
"no-console": "off",
"no-empty": ["warn", { "allowEmptyCatch": false }],
"no-inner-declarations": "off",
"no-useless-escape": "off",
"func-names": "off",
"generator-star-spacing": ["error", {"before": true, "after": false}],
"yield-star-spacing": ["error", {"before": true, "after": false}],
"no-duplicate-imports": "error", // whilst imports are not being used, if we start to use them, we do not want duplicates
"no-unreachable": "error",
"no-path-concat": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-sync": "warn",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"eol-last": "error",
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-unneeded-ternary": "error",
"switch-colon-spacing": ["error", {"before": false, "after": true}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-dupe-args": "error",
"no-undef": "error",
"no-var": "error",
"prefer-const": "error",
"no-compare-neg-zero": "error",
"no-extra-semi": "error",
"radix": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "never"],
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"keyword-spacing": ["error"],
"space-before-blocks": ["error"],
"space-infix-ops": ["error"],
"spaced-comment": ["error", "always"],
"no-fallthrough": "error",
"no-octal": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"space-before-function-paren": ["error", "never"],
"no-mixed-spaces-and-tabs": "error",
"no-dupe-keys": "error",
"no-redeclare": ["error", { "builtinGlobals": true }]
}
}