Skip to content

Commit 35bc72d

Browse files
committed
feat: add some component draft
1 parent 3e4f67e commit 35bc72d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+26599
-1
lines changed

.eslintrc.json

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
{
2+
"env": {
3+
"es2021": true,
4+
"node": true,
5+
"browser": true
6+
},
7+
"plugins": ["@typescript-eslint"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaVersion": "latest",
15+
"sourceType": "module"
16+
},
17+
"rules": {
18+
"linebreak-style": [
19+
"error",
20+
"unix"
21+
],
22+
"prefer-const": [
23+
"error",
24+
{
25+
"destructuring": "all"
26+
}
27+
],
28+
"no-var": "error",
29+
"no-new-object": "error",
30+
"no-new-wrappers": "error",
31+
"quote-props": [
32+
"error",
33+
"as-needed"
34+
],
35+
"no-array-constructor": "error",
36+
"object-shorthand": [
37+
"error",
38+
"properties"
39+
],
40+
"prefer-destructuring": [
41+
"warn",
42+
{
43+
"VariableDeclarator": {
44+
"array": true,
45+
"object": true
46+
},
47+
"AssignmentExpression": {
48+
"array": false,
49+
"object": true
50+
}
51+
}
52+
],
53+
"quotes": [
54+
"error",
55+
"single"
56+
],
57+
"prefer-template": "off",
58+
"template-curly-spacing": [
59+
"warn",
60+
"never"
61+
],
62+
"prefer-rest-params": "error",
63+
"wrap-iife": [
64+
"error",
65+
"outside"
66+
],
67+
"no-loop-func": "error",
68+
"no-new-func": "error",
69+
"func-style": [
70+
"error",
71+
"declaration",
72+
{
73+
"allowArrowFunctions": true
74+
}
75+
],
76+
"space-before-function-paren": [
77+
"error",
78+
"always"
79+
],
80+
"space-before-blocks": [
81+
"error",
82+
{
83+
"functions": "always"
84+
}
85+
],
86+
"no-param-reassign": [
87+
"warn",
88+
{
89+
"props": false
90+
}
91+
],
92+
"prefer-spread": "error",
93+
"prefer-arrow-callback": [
94+
"error",
95+
{
96+
"allowNamedFunctions": true
97+
}
98+
],
99+
"arrow-spacing": "error",
100+
"arrow-parens": [
101+
"error",
102+
"as-needed"
103+
],
104+
"no-confusing-arrow": [
105+
"error",
106+
{
107+
"allowParens": true
108+
}
109+
],
110+
"no-iterator": "error",
111+
"no-restricted-syntax": [
112+
"error",
113+
"WithStatement",
114+
"BinaryExpression[operator='in']",
115+
{
116+
"selector": "CallExpression[callee.name='setTimeout'][arguments.length!=2]",
117+
"message": "setTimeout must always be invoked with two arguments."
118+
}
119+
],
120+
"generator-star-spacing": [
121+
"error",
122+
{
123+
"before": false,
124+
"after": false
125+
}
126+
],
127+
"dot-notation": "error",
128+
"no-undef": [
129+
"error",
130+
{
131+
"typeof": false
132+
}
133+
],
134+
"no-multi-assign": "error",
135+
"no-multi-spaces": "warn",
136+
"no-plusplus": [
137+
"error",
138+
{
139+
"allowForLoopAfterthoughts": true
140+
}
141+
],
142+
"max-len": [
143+
"off",
144+
{
145+
"code": 80,
146+
"ignoreComments": true,
147+
"ignoreTrailingComments": true
148+
}
149+
],
150+
"eqeqeq": "warn",
151+
"no-case-declarations": "warn",
152+
"no-nested-ternary": "error",
153+
"no-unneeded-ternary": "error",
154+
"no-mixed-operators": [
155+
"error",
156+
{
157+
"groups": [
158+
[
159+
"&",
160+
"|",
161+
"^",
162+
"~",
163+
"<<",
164+
">>",
165+
">>>"
166+
],
167+
[
168+
"&&",
169+
"||"
170+
],
171+
[
172+
"==",
173+
"!=",
174+
"===",
175+
"!==",
176+
">",
177+
">=",
178+
"<",
179+
"<="
180+
]
181+
],
182+
"allowSamePrecedence": true
183+
}
184+
],
185+
"nonblock-statement-body-position": [
186+
"error",
187+
"beside"
188+
],
189+
"no-else-return": "error",
190+
"spaced-comment": [
191+
"error",
192+
"always",
193+
{
194+
"block": {
195+
"balanced": true
196+
}
197+
}
198+
],
199+
"indent": [
200+
"error",
201+
2
202+
],
203+
"semi-spacing": [
204+
"error",
205+
{
206+
"before": false,
207+
"after": true
208+
}
209+
],
210+
"comma-spacing": [
211+
"error",
212+
{
213+
"before": false,
214+
"after": true
215+
}
216+
],
217+
"comma-dangle": [
218+
"error",
219+
"always-multiline"
220+
],
221+
"space-infix-ops": "error",
222+
"camelcase": "off",
223+
"keyword-spacing": "error",
224+
"no-unused-vars": [
225+
"error",
226+
{
227+
"vars": "local"
228+
}
229+
],
230+
"no-fallthrough": "off",
231+
"curly": "off",
232+
"semi": [
233+
"error",
234+
"never"
235+
],
236+
"no-empty": "off",
237+
"no-alert": "warn",
238+
"no-class-assign": "off",
239+
"no-useless-escape": "off",
240+
"no-bitwise": "off",
241+
"no-eq-null": "off",
242+
"no-debugger": "error",
243+
"guard-for-in": "warn",
244+
"object-curly-spacing": [
245+
"error",
246+
"always"
247+
]
248+
}
249+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.13.0

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# docs
1+
# docs
2+
3+
Based on https://github.com/gitname/react-gh-pages

0 commit comments

Comments
 (0)