1 | ;
|
2 |
|
3 | module.exports = {
|
4 | plugins: ["node"],
|
5 | env: {
|
6 | node: true,
|
7 | },
|
8 | rules: {
|
9 | // disallow use of new operator with the require function
|
10 | "no-new-require": 2,
|
11 |
|
12 | // disallow string concatenation with __dirname and __filename
|
13 | "no-path-concat": 2,
|
14 |
|
15 | // disallow using unsupported features based on the node version in the engines
|
16 | // field. if no engine is specified, this rule is ignored
|
17 | "node/no-unsupported-features": 2,
|
18 |
|
19 | // disallow use of deprecated node APIS to future-proof code
|
20 | "node/no-deprecated-api": 2,
|
21 | },
|
22 | };
|