forked from lidofinance/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (59 loc) · 1.27 KB
/
.eslintrc
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
{
"env": {
"node": true,
"es2020": true
},
"extends": [
"standard",
"plugin:prettier/recommended",
"prettier",
"prettier/standard"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"node",
"prettier",
"standard"
],
"rules": {
"prettier/prettier": "error",
"max-len": ["warn", { "code": 140, "ignoreComments": true, "ignoreUrls": true }],
"no-undef": "warn",
"no-unused-vars": "warn",
"prefer-const": "warn",
"camelcase": "off",
"eol-last": "warn",
"no-multiple-empty-lines": "warn",
"comma-dangle": "warn",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"jsx-quotes": ["error", "prefer-single"],
"no-useless-escape": "off",
"valid-jsdoc": "error",
"linebreak-style": ["error", "unix"]
},
"overrides": [
{
"files": [
"./scripts/{**/,}*.js",
"./test/{**/,}*.js",
"./e2e/test/{**/,}*.js"
],
"env": {
"mocha": true
},
"globals": {
"artifacts": "readonly",
"contract": "readonly",
"web3": "readonly"
}
}
]
}