-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
42 lines (42 loc) · 1012 Bytes
/
.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
41
42
{
"env": {
"browser": true,
"jquery": true
},
"extends": [
"eslint:recommended"
],
"globals": {
"bootstrap": "readonly",
"FullCalendar": "readonly"
},
"parserOptions": {
},
"rules": {
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", 2],
"keyword-spacing": "error",
"max-len": ["error", {"code": 120}],
"no-trailing-spaces": "error",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"space-before-blocks": "error",
"space-infix-ops": ["error", { "int32Hint": false }],
"no-unused-vars": ["error", { "vars": "local" }]
},
"overrides": [
{
"files": ["**/*.es6"],
"env": {
"es6": true
},
"extends": ["google"],
"rules": {
"comma-dangle": "off",
"curly": ["error", "multi-or-nest"],
"max-len": ["error", { "code": 120 }]
}
}
]
}