-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (41 loc) · 1.16 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
40
41
42
// https://github.com/mysticatea/eslint-plugin-node
var path = require('path');
module.exports = {
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"airbnb-base",
],
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"node": true,
},
"rules": {
"node/exports-style": ["error", "module.exports"],
"node/prefer-global/buffer": ["error", "always"],
"node/prefer-global/console": ["error", "always"],
"node/prefer-global/process": ["error", "always"],
"node/prefer-global/url-search-params": ["error", "always"],
"node/prefer-global/url": ["error", "always"],
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error",
"node/no-unsupported-features/node-builtins": "error",
"node/no-unsupported-features/es-syntax": ["error", {
"version": ">=10.15.3",
"ignores": ['modules']
}],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": [2, { "allow": ['_id', '_doc'] }]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["./"]
}
}
}
};