forked from 0xjac/ERC777
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
58 lines (56 loc) · 1.65 KB
/
.eslintrc.js
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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
module.exports = {
"extends": [
"standard",
"plugin:promise/recommended"
],
"plugins": [
"promise"
],
"env": {
"browser" : true,
"node" : true,
"mocha" : true,
"jest" : true
},
"globals" : {
"artifacts": false,
"contract": false,
"assert": false,
"web3": false
},
"rules": {
// Strict mode
"strict": ["error", "global"],
// Code style
"indent": ["error", 2],
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"no-use-before-define": 0,
"eqeqeq": ["error", "smart"],
"dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}],
"no-redeclare": ["error", {"builtinGlobals": true}],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"eol-last": 1,
"comma-spacing": ["error", {"before": false, "after": true}],
"camelcase": ["error", {"properties": "always"}],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"comma-dangle": [1, "always-multiline"],
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-debugger": 0,
"no-undef": "error",
"object-curly-spacing": ["error", "always"],
"max-len": ["error", 80, 2],
"generator-star-spacing": ["error", "before"],
"promise/avoid-new": 0,
"promise/always-return": 0
}
};