This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
36 lines (33 loc) · 1.13 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
30
31
32
33
34
35
36
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"curly": "error",
"dot-location": ["error", "property"],
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-useless-return": "error",
"space-before-function-paren": ["error", {"anonymous": "always","named": "never"}],
"no-trailing-spaces": 2,
"no-multi-spaces": 2,
"dot-notation": "error",
"no-whitespace-before-property": 2,
"semi": "error",
"quotes": [ "error", "single" ],
"no-multiple-empty-lines": ["error", {"max": 1}],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true , "after": true }],
"no-extra-semi": "error",
"max-len": ["warn", {"code": 120}]
}
}