-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (30 loc) · 1.07 KB
/
.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
35
36
37
38
39
module.exports = {
// Felix styles
// https://github.com/felixge/node-style-guide
"extends": "node-style-guide",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {
"max-len": ["warn", 180],
//"no-unused-vars": "off",
// changed to warning from felix
"max-depth": ["warn", 3],
// already handled in the unpublished git updates of node-style-guide
// but only 1.0.0 is published to npm
"space-after-keywords": "off",
"keyword-spacing": [2, { "before": true, "after": true }],
// relax this rule about statements in a function
"max-statements": "off",
// override this rule from felix, its insanely more common to allow the spaces
"object-curly-spacing": [2, "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
// specify allowed ignored args that begin with underscore
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
// common express.Router usage
"new-cap": ["warn", { "capIsNewExceptions": [ "Router" ] }]
}
};