-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy path.eslintrc.json
More file actions
38 lines (33 loc) · 925 Bytes
/
.eslintrc.json
File metadata and controls
38 lines (33 loc) · 925 Bytes
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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"browser": true,
"es2017": true,
"node": true
},
"globals": {
"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"]
}
}