-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
67 lines (67 loc) · 1.68 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
{
"extends": ["bloq"],
"overrides": [
{
"files": ["**/test/*.js", "**/test/**/*.js"],
"extends": ["bloq/mocha"],
"globals": {
"artifacts": "readonly",
"contract": "readonly",
"beforeEach": "readonly",
"before": "readonly",
"it": "readonly",
"web3": "readonly",
"describe": "readonly"
},
"rules": {
"mocha/no-top-level-hooks": "off",
"mocha/no-hooks-for-single-case": "off",
"mocha/no-exports": "off",
"mocha/no-setup-in-describe": "off",
"node/no-unpublished-require": "off"
}
},
{
"files": ["hardhat*", "**/tasks/*"],
"globals": {
"ethers": "readonly",
"hre": "readonly",
"run": "readonly",
"task": "readonly",
"types": "readonly",
"subtask": "readonly"
}
}
],
"root": true,
"globals": {
"require": "readonly",
"module": "readonly",
"process": "readonly",
"console": "readonly",
"__dirname": "readonly"
},
"rules": {
"strict": ["error", "global"],
"no-loss-of-precision": "off",
"no-nonoctal-decimal-escape": "off",
"no-unsafe-optional-chaining": "off",
"no-useless-backreference": "off",
"no-extra-semi": "off",
"new-cap": "off",
"promise/catch-or-return": [
"error",
{
"allowFinally": true,
"allowThen": true
}
],
"jsdoc/require-jsdoc": "off",
"max-len": ["error", { "code": 120 }],
"prettier/prettier": ["error", { "trailingComma": "all" }],
"semi": ["error", "never"],
"quotes": ["error", "single", { "avoidEscape": true }],
"sort-keys":"off"
},
"plugins": ["prettier"]
}