-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
40 lines (38 loc) · 1.12 KB
/
.eslintrc.json
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
37
38
39
40
{
"extends": "standard",
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"indent": ["error", 4, {
"SwitchCase": 1
}],
"linebreak-style": ["error", "unix"],
"quotes": "off",
"semi": ["error", "always"],
// toto by sa mohlo zmenit na always. Robilo to problemy len IE8, ale ten uz nepouzivame
"comma-dangle": ["error", "never"],
"no-cond-assign": ["error", "always"],
// disable rules from base configurations
"no-console": "off",
"space-before-function-paren": ["error", "never"],
"one-var": ["error", "always"],
"no-multiple-empty-lines": ["error", {
"max": 2
}],
"spaced-comment": "off",
"one-var-declaration-per-line": ["warn", "initializations"],
"padded-blocks": ["warn", "never"],
"no-return-assign": "warn",
"no-unused-vars": "warn",
"key-spacing": ["error", {
"afterColon": true,
"mode": "minimum"
}]
}
}