-
Notifications
You must be signed in to change notification settings - Fork 4
/
node.js
30 lines (30 loc) · 886 Bytes
/
node.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
module.exports = {
env: {
node: true,
mocha: true
},
extends: "./base.js",
rules: {
// Overrides
"no-buffer-constructor": "error",
"no-console": "off",
"comma-dangle": ["error", "only-multiline"],
// Additions
"handle-callback-err": "error",
"no-duplicate-imports": ["error", { includeExports: true }],
"no-process-env": "error",
"no-process-exit": "error",
"no-sync": "error",
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": ["error", { allowNamedFunctions: true }],
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"rest-spread-spacing": [
"error",
"never"
]
}
};