-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc
27 lines (27 loc) · 800 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
25
26
27
{
"env": {
"node": true,
"es6": true
},
"rules": {
"brace-style": ["error", "stroustrup"],
"comma-spacing": ["error", { "before": false, "after": true }],
"curly": ["error", "multi"],
"indent": ["error", 4],
"key-spacing": [2, { "beforeColon": false, "afterColon": true}],
"no-var": "error",
"object-curly-newline": ["error", { "multiline": true }],
"operator-linebreak": ["error", "none"],
"prefer-const": "error",
"quotes": [1, "single"],
"semi": [1, "always"],
"space-before-blocks": "error",
"space-infix-ops": ["error", { "int32Hint": false }],
"switch-colon-spacing": ["error", { "after": true, "before": false}],
"vars-on-top": "error"
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
}
}