|
1 | | -{ |
| 1 | +module.exports = { |
2 | 2 | "root": true, |
3 | 3 | "plugins": ["node"], |
4 | 4 | "extends": ["eslint:recommended", "plugin:node/recommended"], |
5 | 5 | "env": { |
6 | | - "node": true |
| 6 | + "node": true, |
| 7 | + "es6": true, |
7 | 8 | }, |
| 9 | + "parserOptions": { "ecmaVersion": 2017 }, |
8 | 10 | "rules": { |
9 | 11 | "quotes": ["error", "double"], |
10 | 12 | "no-undef": "error", |
|
26 | 28 | "space-in-parens": "error", |
27 | 29 | "no-trailing-spaces": "error", |
28 | 30 | "no-use-before-define": "off", |
29 | | - "no-unused-vars": ["error", {"args": "none"}], |
| 31 | + "no-unused-vars": ["error", { "args": "none" }], |
30 | 32 | "key-spacing": "error", |
31 | 33 | "space-infix-ops": "error", |
32 | 34 | "no-unsafe-negation": "error", |
|
37 | 39 | "keyword-spacing": ["error", { |
38 | 40 | "after": false, |
39 | 41 | "overrides": { |
40 | | - "try": {"after": true}, |
41 | | - "else": {"after": true}, |
42 | | - "throw": {"after": true}, |
43 | | - "case": {"after": true}, |
44 | | - "return": {"after": true}, |
45 | | - "finally": {"after": true}, |
46 | | - "do": {"after": true} |
| 42 | + "const": { "after": true }, |
| 43 | + "try": { "after": true }, |
| 44 | + "else": { "after": true }, |
| 45 | + "throw": { "after": true }, |
| 46 | + "case": { "after": true }, |
| 47 | + "return": { "after": true }, |
| 48 | + "finally": { "after": true }, |
| 49 | + "do": { "after": true } |
47 | 50 | } |
48 | 51 | }], |
49 | 52 | "no-console": "off", |
50 | | - "valid-jsdoc": "error" |
| 53 | + "valid-jsdoc": "error", |
| 54 | + "node/no-unsupported-features": ["error", { version: 4 }], |
| 55 | + "node/no-deprecated-api": "error", |
| 56 | + "node/no-missing-import": "error", |
| 57 | + "node/no-missing-require": [ |
| 58 | + "error", |
| 59 | + { |
| 60 | + "allowModules": [ |
| 61 | + "webpack" |
| 62 | + ] |
| 63 | + } |
| 64 | + ], |
| 65 | + "node/no-unpublished-bin": "error", |
| 66 | + "node/no-unpublished-require": "error", |
| 67 | + "node/process-exit-as-throw": "error" |
51 | 68 | } |
52 | | -} |
53 | | - |
| 69 | +}; |
0 commit comments