-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
34 lines (33 loc) Β· 969 Bytes
/
.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
module.exports = {
env: {
node: true,
mocha: true
},
rules: {
"arrow-parens": 0,
"no-else-return": 2,
strict: 0,
"no-unused-expressions": 0,
"no-sync": 0,
"no-console": 0,
"global-require": 0,
"no-param-reassign": 0,
"consistent-return": 0,
"object-curly-spacing": [2, "always"],
// specify the maximum cyclomatic complexity allowed in a program
complexity: [2, 15],
// specify the maximum depth that blocks can be nested
"max-depth": [2, 3],
// limits the number of parameters that can be used in the function declaration.
"max-params": [2, 5],
// specify the maximum depth callbacks can be nested
"max-nested-callbacks": [2, 7],
// specify the maximum number of statement allowed in a function
"max-statements": [1, 30],
// restrict the number of statements per line
"max-statements-per-line": [2, { max: 1 }]
},
"parserOptions": {
"ecmaVersion": 6
}
};