forked from BitGo/eth-multisig-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (38 loc) · 1.05 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
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"artifacts": true,
"contract": true,
"web3": true,
"assert": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
},
"rules": {
"indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": "off"}],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"eqeqeq": ["warn", "always"],
"curly": "error",
"no-extra-boolean-cast": "off",
"no-unused-vars": "warn",
"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"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"quote-props": ["error", "as-needed"],
"no-console": "off",
"no-empty": "warn",
"no-var": "error",
"prefer-const": "error"
}
}