Skip to content

Commit 6b2b7da

Browse files
committed
Initial commit
0 parents  commit 6b2b7da

20 files changed

+3651
-0
lines changed

.eslintrc.json

+292
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"es6": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 9,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"comma-dangle": 2,
13+
"no-cond-assign": 2,
14+
"no-console": 1,
15+
"no-constant-condition": 2,
16+
"no-control-regex": 2,
17+
"no-debugger": 2,
18+
"no-dupe-args": 2,
19+
"no-dupe-keys": 2,
20+
"no-duplicate-case": 2,
21+
"no-empty": 2,
22+
"no-empty-character-class": 2,
23+
"no-ex-assign": 2,
24+
"no-extra-boolean-cast": 2,
25+
"no-extra-semi": 2,
26+
"no-func-assign": 2,
27+
"no-inner-declarations": 2,
28+
"no-invalid-regexp": 2,
29+
"no-irregular-whitespace": 2,
30+
"no-negated-in-lhs": 0,
31+
"no-obj-calls": 2,
32+
"no-regex-spaces": 2,
33+
"no-sparse-arrays": 2,
34+
"no-unexpected-multiline": 2,
35+
"no-unreachable": 2,
36+
"use-isnan": 2,
37+
"valid-typeof": 2,
38+
"accessor-pairs": 2,
39+
"array-callback-return": 0,
40+
"consistent-return": 0,
41+
"curly": [
42+
2,
43+
"multi-or-nest",
44+
"consistent"
45+
],
46+
"default-case": 2,
47+
"dot-location": [
48+
2,
49+
"property"
50+
],
51+
"dot-notation": [
52+
2,
53+
{
54+
"allowPattern": "^[a-z]+(_[a-z]+)+$"
55+
}
56+
],
57+
"eqeqeq": [
58+
"error",
59+
"always",
60+
{
61+
"null": "ignore"
62+
}
63+
],
64+
"no-alert": 2,
65+
"no-caller": 2,
66+
"no-case-declarations": 2,
67+
"no-div-regex": 2,
68+
"no-else-return": 2,
69+
"no-empty-function": 2,
70+
"no-empty-pattern": 2,
71+
"no-eq-null": 0,
72+
"no-eval": 2,
73+
"no-extend-native": 2,
74+
"no-extra-bind": 2,
75+
"no-extra-label": 2,
76+
"no-fallthrough": 2,
77+
"no-floating-decimal": 2,
78+
"no-implicit-coercion": 2,
79+
"no-implicit-globals": 2,
80+
"no-implied-eval": 2,
81+
"no-invalid-this": 2,
82+
"no-iterator": 2,
83+
"no-labels": 2,
84+
"no-lone-blocks": 2,
85+
"no-loop-func": 2,
86+
"no-magic-numbers": 0,
87+
"no-multi-spaces": [
88+
2,
89+
{
90+
"ignoreEOLComments": true,
91+
"exceptions": {
92+
"Array": true,
93+
"Property": true,
94+
"VariableDeclarator": true,
95+
"ImportDeclaration": true,
96+
"Comments": true
97+
}
98+
}
99+
],
100+
"no-multi-str": 2,
101+
"no-native-reassign": 2,
102+
"no-new": 2,
103+
"no-new-func": 2,
104+
"no-new-wrappers": 2,
105+
"no-octal": 2,
106+
"no-octal-escape": 2,
107+
"no-param-reassign": 0,
108+
"no-proto": 2,
109+
"no-redeclare": 2,
110+
"no-return-assign": 0,
111+
"no-script-url": 2,
112+
"no-self-assign": 2,
113+
"no-self-compare": 2,
114+
"no-sequences": 0,
115+
"no-throw-literal": 2,
116+
"no-unmodified-loop-condition": 2,
117+
"no-unused-expressions": 0,
118+
"no-unused-labels": 2,
119+
"no-useless-call": 2,
120+
"no-useless-concat": 2,
121+
"no-useless-escape": 2,
122+
"no-void": 2,
123+
"no-with": 2,
124+
"wrap-iife": 2,
125+
"no-delete-var": 2,
126+
"no-label-var": 2,
127+
"no-restricted-globals": 2,
128+
"no-shadow": 0,
129+
"no-shadow-restricted-names": 2,
130+
"no-undef": 2,
131+
"no-undef-init": 2,
132+
"no-unused-vars": 0,
133+
"no-use-before-define": [
134+
2,
135+
{
136+
"functions": false,
137+
"variables": false
138+
}
139+
],
140+
"callback-return": 0,
141+
"global-require": 2,
142+
"handle-callback-err": 2,
143+
"no-mixed-requires": 2,
144+
"no-new-require": 2,
145+
"no-path-concat": 2,
146+
"no-process-env": 2,
147+
"no-process-exit": 2,
148+
"array-bracket-spacing": [
149+
2,
150+
"never"
151+
],
152+
"block-spacing": [
153+
2,
154+
"always"
155+
],
156+
"brace-style": [
157+
2,
158+
"1tbs",
159+
{
160+
"allowSingleLine": true
161+
}
162+
],
163+
"camelcase": 0,
164+
"comma-spacing": 2,
165+
"comma-style": [
166+
2,
167+
"first",
168+
{
169+
"exceptions": {
170+
"ArrayExpression": true,
171+
"ObjectExpression": true
172+
}
173+
}
174+
],
175+
"consistent-this": [
176+
2,
177+
"self"
178+
],
179+
"eol-last": 2,
180+
"indent": [
181+
2,
182+
2,
183+
{
184+
"MemberExpression": "off",
185+
"flatTernaryExpressions": true,
186+
"VariableDeclarator": {
187+
"const": 2
188+
},
189+
"FunctionExpression": {
190+
"parameters": "first"
191+
},
192+
"CallExpression": {
193+
"arguments": "off"
194+
},
195+
"ArrayExpression": "first",
196+
"ObjectExpression": "first"
197+
}
198+
],
199+
"key-spacing": [
200+
0,
201+
{
202+
"beforeColon": false,
203+
"afterColon": true,
204+
"mode": "minimum"
205+
}
206+
],
207+
"keyword-spacing": 2,
208+
"linebreak-style": 2,
209+
"lines-around-comment": 2,
210+
"max-depth": [
211+
2,
212+
5
213+
],
214+
"max-len": [
215+
2,
216+
120
217+
],
218+
"max-nested-callbacks": [
219+
2,
220+
5
221+
],
222+
"max-params": [
223+
2,
224+
4
225+
],
226+
"max-statements-per-line": 0,
227+
"new-cap": [
228+
2,
229+
{
230+
"capIsNew": false
231+
}
232+
],
233+
"new-parens": 2,
234+
"newline-after-var": 0,
235+
"newline-before-return": 0,
236+
"no-array-constructor": 2,
237+
"no-bitwise": 0,
238+
"no-continue": 2,
239+
"no-lonely-if": 2,
240+
"no-mixed-spaces-and-tabs": 2,
241+
"no-negated-condition": 0,
242+
"no-new-object": 2,
243+
"no-spaced-func": 2,
244+
"no-trailing-spaces": 1,
245+
"no-unneeded-ternary": 2,
246+
"no-whitespace-before-property": 2,
247+
"object-curly-spacing": [
248+
2,
249+
"always"
250+
],
251+
"one-var-declaration-per-line": [
252+
2,
253+
"always"
254+
],
255+
"quote-props": [
256+
2,
257+
"as-needed"
258+
],
259+
"quotes": [
260+
2,
261+
"single"
262+
],
263+
"semi": [
264+
2,
265+
"never"
266+
],
267+
"space-before-blocks": 2,
268+
"space-before-function-paren": [
269+
2,
270+
"never"
271+
],
272+
"space-infix-ops": 2,
273+
"space-unary-ops": 2,
274+
"spaced-comment": 2,
275+
"arrow-spacing": 2,
276+
"constructor-super": 2,
277+
"no-class-assign": 2,
278+
"no-confusing-arrow": 0,
279+
"no-const-assign": 2,
280+
"no-dupe-class-members": 2,
281+
"no-duplicate-imports": 2,
282+
"no-new-symbol": 2,
283+
"no-this-before-super": 2,
284+
"no-useless-constructor": 2,
285+
"no-var": 2,
286+
"object-shorthand": 0,
287+
"prefer-arrow-callback": 0,
288+
"prefer-const": 2,
289+
"prefer-rest-params": 0,
290+
"prefer-spread": 0
291+
}
292+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)