forked from padloc/padloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
56 lines (56 loc) · 1.71 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
48
49
50
51
52
53
54
55
56
{
"parserOptions": {
"ecmaVersion": "2015"
},
"env": {
"node": true,
"es6": true,
"es7": true,
"browser": true
},
"extends": "eslint:recommended",
"plugins": [
"html"
],
"globals": {
"Polymer": true,
"padlock": true,
"$l": true
},
"rules": {
"brace-style": "off",
"camelcase": "error",
"comma-spacing": "warn",
"comma-style": "error",
"curly": "error",
"eol-last": "warn",
"indent": ["error", 4, {"SwitchCase": 1, "outerIIFEBody": 0}],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "error",
"max-len": ["error", 120],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", {"max": 1, "maxBOF": 1, "maxEOF": 0}],
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-use-before-define": "warn",
"no-whitespace-before-property": "error",
"operator-linebreak": ["error", "after"],
"quotes": ["error", "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "warn",
"space-unary-ops": "error",
"spaced-comment": "warn",
"strict": "off",
"wrap-iife": ["error", "inside"]
}
}