-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
33 lines (33 loc) · 952 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
28
29
30
31
32
33
{
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"semi": "error",
"curly": "error",
"no-var": "error",
"eqeqeq": "error",
"eol-last": "error",
"no-alert": "error",
"no-console": "warn",
"no-shadow": "error",
"prefer-const": "warn",
"default-case": "error",
"no-unused-vars": "error",
"space-infix-ops": "error",
"no-trailing-spaces": "error",
"linebreak-style": [2, "unix"],
"space-before-blocks": "error",
"newline-before-return": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"object-curly-spacing": ["error", "always"],
"camelcase": ["error", { "properties": "never" }],
"spaced-comment": ["error", "always", { "exceptions": ["-"] }],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }]
}
}