-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
53 lines (53 loc) · 1.24 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
{
"extends": ["bloq", "plugin:@typescript-eslint/recommended"],
"overrides": [
{
"files": ["test/*.ts", "test/*/*.ts", ".solcover.js"],
"extends": ["bloq/mocha"],
"globals": {
"artifacts": false,
"contract": false,
"beforeEach": false,
"before": false,
"it": false,
"web3": false,
"describe": false
},
"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": false,
"hre": false,
"run": false,
"task": false,
"types": false
}
}
],
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"promise/catch-or-return": [
"error",
{
"allowFinally": true,
"allowThen": true
}
],
"jsdoc/require-jsdoc": "off",
"max-len": ["error", {"code": 120}],
"semi": ["error", "never"],
"quotes": ["error", "single"],
"arrow-body-style": "off",
"sort-keys": "off"
}
}