forked from fossar/selfoss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.41 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
{
"root": true,
"extends": "eslint:recommended",
"rules": {
"no-eval": "error",
"array-bracket-spacing": "error",
"no-array-constructor": "error",
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"curly": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 4],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"max-statements-per-line": ["error", {"max": 1}],
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error",
"no-use-before-define": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", {"multiline": true, "consistent": true}],
"one-var-declaration-per-line": "error",
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"unicode-bom": "error"
},
"env": {
"browser": true,
"jquery": true
},
"globals": {
"selfoss": {},
"Dexie": {}
}
}