-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
29 lines (29 loc) · 1.04 KB
/
.eslintrc
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
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"extends": "eslint:recommended",
"rules": {
"no-unused-vars": ["error", { "argsIgnorePattern": "^(err|req|res|next)$" }],
"no-mixed-requires": ["error", { "allowCall": true }],
"quotes": ["error", "single"],
"no-trailing-spaces": "error",
"indent": "error",
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"no-mixed-spaces-and-tabs": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"one-var": ["off", { "initialized": "never" }],
"no-var": "off",
"require-await": "warn"
}
}