This repository has been archived by the owner on Jun 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
110 lines (110 loc) · 3.04 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
102
103
104
105
106
107
108
109
110
module.exports = {
"rules": {
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"computed-property-spacing": [
"error",
"never"
],
"curly": [
"error",
"all"
],
"dot-notation": [
"error"
],
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"indent": [1, 4, {"SwitchCase": 1}],
"keyword-spacing": "error",
"new-cap": "error",
"new-parens": "error",
"no-alert": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": [
"error",
"except-parens"
],
"no-debugger": "error",
"no-empty": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-implicit-coercion": [
"error",
{
"allow": [
"!!"
]
}
],
"no-implied-eval": "error",
"no-irregular-whitespace": "error",
"no-iterator": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-script-url": "error",
"no-self-assign": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-spaced-func": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used"
}
],
"no-useless-call": "error",
"no-with": "error",
"radix": "error",
"semi": [
"error",
"always"
],
"space-before-blocks": [
"error",
{
"classes": "always",
"functions": "always",
"keywords": "always"
}
],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": [
"error",
"always"
],
"valid-typeof": "error",
"wrap-iife": [
"error",
"inside"
]
// the following lines are nice to have rules that we would like to implement
// they are sorted by priority order (the top ones are the most important)
// "prefer-template": "error",
// "object-shorthand": "error",
// "strict": "warn",
// "prefer-arrow-callback": ["warn", { "allowNamedFunctions": true }],
// "camelcase": "warn",
// "no-empty-function": "error",
// "no-extra-parens": "warn",
// "default-case": "error",
// "no-case-declarations": "error",
// "prefer-spread": "error",
// "prefer-rest-params": "error",
}
};