-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
72 lines (69 loc) · 1.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"extends": ["eslint:recommended", "google"],
"plugins": [
"standard",
"promise"
],
"globals": {
"console": true,
"Promise": true,
"require": true,
"module": true,
"exports": true,
"document": true,
"navigator": true,
"window": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"semi": [1, "always"],
"linebreak-style": ["error", "unix"],
"quotes": [1, "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"space-before-function-paren": [0, "never"],
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": 2, "MemberExpression": 2 }],
"max-len": [1, {
"code": 100,
"tabWidth": 2,
"ignoreUrls": true,
"ignorePattern": "^goog\\.(module|require)"
}],
"require-jsdoc": [1, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}],
"valid-jsdoc": [1, {
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false,
"prefer": {"returns": "return"}
}],
"no-console": 0,
"no-multiple-empty-lines": [1, { "max": 3 }],
"comma-dangle": [2, "never"],
"arrow-parens": [1, "as-needed", { "requireForBlockBody": false }],
"one-var": [1, {
"var": "consecutive",
"let": "consecutive",
"const": "consecutive"
}],
"keyword-spacing": ["warn", {"overrides": {
"if": {"after": false},
"else": {"before": false},
"catch": {"before": false, "after": false},
"for": {"after": false}
}}],
"no-unused-vars": [1, {"args": "none"}],
"no-trailing-spaces": 1,
"new-cap": 1
}
}