-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
47 lines (43 loc) · 1.22 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
41
42
43
44
45
46
47
{
"globals" : {
"rawData": false,
"app": false,
"Handlebars": false,
"page": false,
"$": false,
"marked": false,
"hljs": false,
"API_URL": false,
"google" : false
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {"impliedStrict": true}
},
"env": {
"browser": true,
"jquery": true,
"node": true,
"es6": true
},
"rules": {
"no-console": "off",
"semi": ["error", "always"],
"quotes": ["warn", "single", {"allowTemplateLiterals": true}],
"indent": ["error", 4],
"space-infix-ops": ["error", {"int32Hint": false}],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-multi-spaces": ["warn", {"exceptions": { "VariableDeclarator": true }}],
"no-mixed-spaces-and-tabs": "warn",
"no-undef": "error",
"no-undefined": "error",
"no-unused-vars": "error",
"no-var": "warn",
"prefer-const": "warn",
"eqeqeq": ["error", "always"],
"no-template-curly-in-string": "error",
"new-cap": "warn",
"no-redeclare": ["error", { "builtinGlobals": true }]
}
}