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
| "use strict";
|
| module.exports = {
| "env": {
| "node": true
| },
| "rules": {
| // enforce return after a callback
| "callback-return": 0,
| // disallow require() outside of the top-level module scope
| "global-require": 0,
| // enforces error handling in callbacks (node environment)
| "handle-callback-err": 0,
| // disallow mixing regular variable and require declarations
| "no-mixed-requires": 0,
| // disallow use of new operator with the require function
| "no-new-require": 0,
| // disallow string concatenation with __dirname and __filename
| "no-path-concat": 0,
| // disallow process.exit()
| "no-process-exit": 0,
| // restrict usage of specified node modules
| "no-restricted-modules": 0,
| // disallow use of synchronous methods (off by default)
| "no-sync": 0
| }
| };
|
|