-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc
68 lines (68 loc) · 1.55 KB
/
.eslintrc
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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"rules": {
"semi": ["error", "always"],
"indent": ["error", "tab", {
"SwitchCase": 0,
"ObjectExpression": 1,
"MemberExpression": 1,
"VariableDeclarator": 1,
"FunctionDeclaration": {
"parameters": "first"
},
"ArrayExpression": "first"
}],
"brace-style": ["error", "1tbs", {
"allowSingleLine": true
}],
"no-unused-vars": ["error", {
"args": "none"
}],
"no-dupe-keys": ["error"],
"no-dupe-args": ["error"],
"valid-jsdoc": ["error", {
"requireReturn": false,
"requireReturnDescription": false,
"matchDescription": ".+"
}],
"array-bracket-spacing": ["error", "always", {
"objectsInArrays": false,
"arraysInArrays": false
}],
"object-curly-spacing": ["error", "always", {
"objectsInObjects": false
}],
"comma-spacing": ["error", {
"before": false,
"after": true }
],
"linebreak-style": ["error", "unix"],
"no-self-assign": ["error"],
"no-redeclare": ["error"],
"no-useless-escape": ["error"],
"yoda": ["error"],
"no-multi-spaces": ["error"],
"space-infix-ops": ["error"],
"no-unreachable": ["warn"],
"no-debugger": ["warn"],
"space-in-parens": ["error", "never"],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"block-spacing": ["error"],
"eol-last": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"key-spacing": ["error"]
}
}