Skip to content

Commit ae26baf

Browse files
committed
feat: inital commit
0 parents  commit ae26baf

30 files changed

+11015
-0
lines changed

.babelrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"useBuiltIns": "usage",
7+
"corejs": {
8+
"version": 3,
9+
"proposals": true
10+
},
11+
"targets": "> 0.25%, not dead"
12+
}
13+
],
14+
"@babel/preset-react",
15+
"@babel/preset-typescript"
16+
]
17+
}

.commitlintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.eslintrc

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"sourceType": "module",
5+
"project": "./tsconfig.eslint.json",
6+
"ecmaFeatures": {
7+
"jsx": true
8+
}
9+
},
10+
"env": {
11+
"browser": true,
12+
"node": true
13+
},
14+
"extends": [
15+
"airbnb-typescript",
16+
"plugin:@typescript-eslint/recommended",
17+
"prettier"
18+
],
19+
"plugins": ["react", "jsx-a11y", "import", "prettier", "@typescript-eslint"],
20+
"rules": {
21+
"prettier/prettier": ["error"],
22+
23+
"no-use-before-define": "off",
24+
"@typescript-eslint/no-use-before-define": ["error"],
25+
"no-shadow": "off",
26+
"@typescript-eslint/no-shadow": ["error"],
27+
"react/jsx-filename-extension": [
28+
"error",
29+
{
30+
"extensions": [".tsx"]
31+
}
32+
],
33+
"react/prop-types": ["off", {}],
34+
"import/extensions": [
35+
"error",
36+
"ignorePackages",
37+
{
38+
"js": "never",
39+
"jsx": "never",
40+
"ts": "never",
41+
"tsx": "never"
42+
}
43+
],
44+
"import/no-extraneous-dependencies": [
45+
"error",
46+
{
47+
"devDependencies": ["**/webpack.*.ts", "./scripts/*.ts"]
48+
}
49+
],
50+
"import/order": [
51+
"error",
52+
{
53+
"groups": [
54+
"builtin",
55+
"external",
56+
"internal",
57+
"parent",
58+
"sibling",
59+
"index",
60+
"object"
61+
]
62+
}
63+
]
64+
},
65+
"ignorePatterns": ["**/dist/**/*", "**/node_modules/**/*"],
66+
"overrides": [
67+
{
68+
"files": ["*.js"],
69+
"rules": {
70+
"@typescript-eslint/no-var-requires": "off"
71+
}
72+
}
73+
]
74+
}

.gitignore

+240
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,react,node,yarn
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,linux,visualstudiocode,react,node,yarn
4+
5+
### Linux ###
6+
*~
7+
8+
# temporary files which can be created if a process still has a handle open of a deleted file
9+
.fuse_hidden*
10+
11+
# KDE directory preferences
12+
.directory
13+
14+
# Linux trash folder which might appear on any partition or disk
15+
.Trash-*
16+
17+
# .nfs files are created when an open file is removed but is still being accessed
18+
.nfs*
19+
20+
### macOS ###
21+
# General
22+
.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# Icon must end with two \r
27+
Icon
28+
29+
30+
# Thumbnails
31+
._*
32+
33+
# Files that might appear in the root of a volume
34+
.DocumentRevisions-V100
35+
.fseventsd
36+
.Spotlight-V100
37+
.TemporaryItems
38+
.Trashes
39+
.VolumeIcon.icns
40+
.com.apple.timemachine.donotpresent
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk
48+
49+
### Node ###
50+
# Logs
51+
logs
52+
*.log
53+
npm-debug.log*
54+
yarn-debug.log*
55+
yarn-error.log*
56+
lerna-debug.log*
57+
.pnpm-debug.log*
58+
59+
# Diagnostic reports (https://nodejs.org/api/report.html)
60+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
61+
62+
# Runtime data
63+
pids
64+
*.pid
65+
*.seed
66+
*.pid.lock
67+
68+
# Directory for instrumented libs generated by jscoverage/JSCover
69+
lib-cov
70+
71+
# Coverage directory used by tools like istanbul
72+
coverage
73+
*.lcov
74+
75+
# nyc test coverage
76+
.nyc_output
77+
78+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
79+
.grunt
80+
81+
# Bower dependency directory (https://bower.io/)
82+
bower_components
83+
84+
# node-waf configuration
85+
.lock-wscript
86+
87+
# Compiled binary addons (https://nodejs.org/api/addons.html)
88+
build/Release
89+
90+
# Dependency directories
91+
node_modules/
92+
jspm_packages/
93+
94+
# Snowpack dependency directory (https://snowpack.dev/)
95+
web_modules/
96+
97+
# TypeScript cache
98+
*.tsbuildinfo
99+
100+
# Optional npm cache directory
101+
.npm
102+
103+
# Optional eslint cache
104+
.eslintcache
105+
106+
# Microbundle cache
107+
.rpt2_cache/
108+
.rts2_cache_cjs/
109+
.rts2_cache_es/
110+
.rts2_cache_umd/
111+
112+
# Optional REPL history
113+
.node_repl_history
114+
115+
# Output of 'npm pack'
116+
*.tgz
117+
118+
# Yarn Integrity file
119+
.yarn-integrity
120+
121+
# dotenv environment variables file
122+
.env
123+
.env.test
124+
.env.production
125+
126+
# parcel-bundler cache (https://parceljs.org/)
127+
.cache
128+
.parcel-cache
129+
130+
# Next.js build output
131+
.next
132+
out
133+
134+
# Nuxt.js build / generate output
135+
.nuxt
136+
dist
137+
138+
# Gatsby files
139+
.cache/
140+
# Comment in the public line in if your project uses Gatsby and not Next.js
141+
# https://nextjs.org/blog/next-9-1#public-directory-support
142+
# public
143+
144+
# vuepress build output
145+
.vuepress/dist
146+
147+
# Serverless directories
148+
.serverless/
149+
150+
# FuseBox cache
151+
.fusebox/
152+
153+
# DynamoDB Local files
154+
.dynamodb/
155+
156+
# TernJS port file
157+
.tern-port
158+
159+
# Stores VSCode versions used for testing VSCode extensions
160+
.vscode-test
161+
162+
# yarn v2
163+
.yarn/cache
164+
.yarn/unplugged
165+
.yarn/build-state.yml
166+
.yarn/install-state.gz
167+
.pnp.*
168+
169+
### react ###
170+
.DS_*
171+
**/*.backup.*
172+
**/*.back.*
173+
174+
node_modules
175+
176+
*.sublime*
177+
178+
psd
179+
thumb
180+
sketch
181+
182+
### VisualStudioCode ###
183+
.vscode/*
184+
!.vscode/settings.json
185+
!.vscode/tasks.json
186+
!.vscode/launch.json
187+
!.vscode/extensions.json
188+
*.code-workspace
189+
190+
# Local History for Visual Studio Code
191+
.history/
192+
193+
### VisualStudioCode Patch ###
194+
# Ignore all local history of files
195+
.history
196+
.ionide
197+
198+
### Windows ###
199+
# Windows thumbnail cache files
200+
Thumbs.db
201+
Thumbs.db:encryptable
202+
ehthumbs.db
203+
ehthumbs_vista.db
204+
205+
# Dump file
206+
*.stackdump
207+
208+
# Folder config file
209+
[Dd]esktop.ini
210+
211+
# Recycle Bin used on file shares
212+
$RECYCLE.BIN/
213+
214+
# Windows Installer files
215+
*.cab
216+
*.msi
217+
*.msix
218+
*.msm
219+
*.msp
220+
221+
# Windows shortcuts
222+
*.lnk
223+
224+
### yarn ###
225+
# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
226+
227+
.yarn/*
228+
!.yarn/releases
229+
!.yarn/plugins
230+
!.yarn/sdks
231+
!.yarn/versions
232+
233+
# if you are NOT using Zero-installs, then:
234+
# comment the following lines
235+
!.yarn/cache
236+
237+
# and uncomment the following lines
238+
# .pnp.*
239+
240+
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,react,node,yarn

.husky/.gitignore

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

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit ""

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": true,
4+
"semi": true,
5+
"tabWidth": 2,
6+
"trailingComma": "all",
7+
"arrowParens": "avoid",
8+
"endOfLine": "auto"
9+
}

.stylelintrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-rational-order",
5+
"stylelint-config-prettier"
6+
],
7+
"plugins": ["stylelint-declaration-block-no-ignored-properties"],
8+
"rules": {
9+
"plugin/declaration-block-no-ignored-properties": true
10+
},
11+
"ignoreFiles": ["**/node_modules/**/*", "**/dist/**/*"]
12+
}

.vscode/extensions.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"stylelint.vscode-stylelint",
6+
"mgmcdermott.vscode-language-babel",
7+
"eamodio.gitlens",
8+
"visualstudioexptteam.vscodeintellicode",
9+
"yzhang.markdown-all-in-one"
10+
]
11+
}

0 commit comments

Comments
 (0)