forked from HMPO/hmpo-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
24 lines (24 loc) · 951 Bytes
/
.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
{
"env": {
"node": true,
"es6": true
},
"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" }]
}
}