-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
101 lines (101 loc) · 2.68 KB
/
index.js
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
module.exports = {
"env": {
"es6": true
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"semi": ["error", "never"],
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"func-call-spacing": ["error", "never"],
"func-names": ["error", "as-needed"],
"func-style": ["error", "declaration"],
"no-debugger": "error",
"valid-typeof": "error",
"consistent-return": "error",
"curly": ["error", "multi-or-nest", "consistent"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"newline-after-var": ["error", "always"],
"no-else-return": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implied-eval": "error",
"no-labels": "error",
"no-loop-func": "error",
"no-magic-numbers": ["error", {
"ignore": [1, 0, -1, 1000],
"ignoreArrayIndexes": true
}],
"no-multi-spaces": ["error", {
"exceptions": {
"VariableDeclarator": true,
"ImportDeclaration": true,
"Property": true
}
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}],
"space-infix-ops": ["error", {
"int32Hint": true
}],
"space-in-parens": ["error", "never"],
"space-unary-ops": "error",
"keyword-spacing": ["error"],
"no-new-wrappers": "error",
"no-param-reassign": ["error", {
"props": false
}],
"no-proto": "error",
"no-redeclare": "error",
"no-self-assign": ["error", {
"props": true
}],
"no-throw-literal": "error",
"no-with": "error",
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"comma-dangle": ["error", {
"arrays": "ignore",
"objects": "ignore",
"imports": "never",
"exports": "ignore",
"functions": "never"
}],
"camelcase": ["error", {
"properties": "never"
}],
"max-len": ["error", {
"code": 80,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"eol-last": ["error", "always"],
"new-parens": "error",
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"no-lonely-if": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1
}],
"no-trailing-spaces": "error",
"prefer-const": "error",
"arrow-spacing": "error"
}
}