-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
44 lines (44 loc) · 1.18 KB
/
.eslintrc.json
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
43
44
{
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:jest/recommended", "xo", "prettier"],
"parserOptions": {
// Only ESLint 6.2.0 and later support ES2020.
"ecmaVersion": 2020
},
"env": {
"jest": true,
"node": true
},
"rules": {
"semi": 0,
"quotes": 0,
"indent": 0,
"linebreak-style": 0,
"no-console": 0,
"prettier/trailingComma": "off",
"node/exports-style": ["error", "module.exports"],
"node/file-extension-in-import": ["error", "always"],
"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",
"object-shorthand": "off",
"capitalized-comments": "off",
"no-unused-vars": [
1,
{
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"jest/expect-expect": [
"error",
{
"assertFunctionNames": ["assert"]
}
]
},
"plugins": ["prettier"]
}