forked from rotcivegaf/solidity-coverage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
57 lines (56 loc) · 1.62 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
{
"extends": ["airbnb-base"],
"plugins": ["mocha"],
"env":{
"meteor": true,
"node": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
/* General */
"consistent-return": [0],
"no-return-assign": [0],
"complexity": ["error", 20],
"eol-last": [0],
"eqeqeq": ["error", "smart"],
"max-len": ["error", 150, 2],
"no-console": [0],
"no-mixed-requires": [0],
"no-native-reassign": [0],
"no-param-reassign": [0],
"no-use-before-define" : ["error", { "functions": false }],
"no-useless-rename": ["error", {
"ignoreDestructuring": true
}],
"no-undefined": ["error"],
"no-underscore-dangle": ["error", { "allow": ["_id"], "allowAfterThis": true }],
"object-curly-spacing": ["error", "always", {
"objectsInObjects": false,
"arraysInObjects": false
}],
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"object-curly-newline": ["error", { "minProperties": 1 }],
"object-property-newline": ["error"],
"prefer-template": [0],
"quotes": [2, "single"],
"radix": ["error", "always"],
"require-yield": [0],
"semi": [2, "always"],
"no-unused-vars": 0,
"import/extensions": [0],
"arrow-parens":[2, "as-needed"],
"no-plusplus":[2, { "allowForLoopAfterthoughts": true }],
"no-bitwise": [2],
"import/no-unresolved": [2, { ignore: ['\.sol\.js$'] }],
"class-methods-use-this": [2],
/* Plugins */
"import/no-extraneous-dependencies": [0],
"mocha/no-exclusive-tests": "error"
},
"settings": {
}
}