-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
.eslintrc.json
44 lines (39 loc) · 1.07 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"globals": {
"Map": "readonly",
"Set": "readonly",
"Symbol": "readonly",
"Promise": "readonly",
"Uint8Array": "readonly",
"ArrayBuffer": "readonly",
"FileReaderSync": "readonly",
"emit": "readonly",
"PouchDB": "readonly"
},
"rules": {
"comma-dangle": ["error", "only-multiline"],
"eol-last": "error",
"no-empty": "off",
"no-console": "off",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"object-shorthand": ["error", "properties"],
"semi": ["error", "always"],
"curly": ["error", "all"],
"space-unary-ops": ["error", {"words": true}],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"max-len": ["error", 100, {"ignoreComments": true, "ignoreStrings": true, "ignoreRegExpLiterals": true}],
"keyword-spacing": ["error"],
"space-before-blocks": ["error"]
}
}