Skip to content

Commit 2d0e6aa

Browse files
committed
Initial Commit
1 parent 1b5037f commit 2d0e6aa

File tree

746 files changed

+80902
-663
lines changed

Some content is hidden

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

746 files changed

+80902
-663
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/*
2+
out/*
3+
.next/*
4+
misc/*

.eslintrc.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
plugins: ['@typescript-eslint', 'react'],
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react/recommended',
8+
'plugin:react-hooks/recommended',
9+
'next/core-web-vitals'
10+
],
11+
env: {
12+
es6: true,
13+
browser: true,
14+
jest: true,
15+
node: true
16+
},
17+
settings: {
18+
react: {
19+
version: 'detect' // Automatically detect React version
20+
}
21+
},
22+
rules: {
23+
'@typescript-eslint/no-explicit-any': 0,
24+
'object-shorthand': 'warn',
25+
'@typescript-eslint/no-non-null-assertion': 'off',
26+
'react/react-in-jsx-scope': 'off',
27+
'react/no-children-prop': 'off',
28+
'@typescript-eslint/no-unused-vars': 'warn', // if it's import var, tree-shaking will remove safely and ctrl+shift+O will auto delete unused import. And this rule is unnecessary for Debug
29+
'@typescript-eslint/no-empty-interface': 'off', // during Dev, you may want build a temp component who's props extends another exist, and detail develop it is future. but, this lint will prevent you to do that. so, it's not a development friendly rule. it's a troublemaker
30+
'react/display-name': 'off',
31+
'@typescript-eslint/no-empty-function': 'off',
32+
'react-hooks/exhaustive-deps': 'off',
33+
'react/prop-types': 'off',
34+
'typescript-eslint/ban-types': 0,
35+
'no-async-promise-executor': 'warn',
36+
'prefer-const': 'warn',
37+
'import/no-named-as-default': 'off' // Disables warnings about default imports
38+
}
39+
}

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# vscode local history
7+
.history
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel
36+
37+
#ts
38+
tsconfig.tsbuildinfo
39+
40+
# Sentry
41+
.sentry.properties
42+
43+
# Sentry Config File
44+
.env.sentry-build-plugin

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
#. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# yarn type-check

.prettierrc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"eslintIntegration": true,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": {
9+
"parser": "typescript"
10+
}
11+
}
12+
],
13+
"printWidth": 140,
14+
"semi": false,
15+
"singleQuote": true,
16+
"tabWidth": 2,
17+
"trailingComma": "none",
18+
"useTabs": false
19+
}

.vscode/extensions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
// prettier
4+
"esbenp.prettier-vscode",
5+
// control prettier format flow
6+
"rohit-gohri.format-code-action",
7+
// colorful comments
8+
"aaron-bond.better-comments"
9+
]
10+
}

.vscode/settings.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.tabSize": 2,
5+
// format flow
6+
"editor.codeActionsOnSave": ["source.formatDocument", "source.organizeImports.sortImports"],
7+
"eslint.validate": ["typescript"],
8+
// https://marketplace.visualstudio.com/items?itemName=dozerg.tsimportsorter
9+
"tsImportSorter.configuration.groupRules": [["^@\\w", "^\\w"], ["^@/"], ["^\\.\\."], ["^\\."], { "flags": "scripts" }],
10+
"tsImportSorter.configuration.keepUnused": [".*"],
11+
"tsImportSorter.configuration.wrappingStyle": {
12+
"maxNamesPerWrappedLine": 0,
13+
"maxBindingNamesPerLine": 0,
14+
"maxDefaultAndBindingNamesPerLine": 0
15+
},
16+
// aaron-bond.better-comments
17+
"better-comments.multilineComments": true,
18+
"better-comments.tags": [
19+
{
20+
"tag": "!",
21+
"color": "#FF2D00",
22+
"strikethrough": false,
23+
"underline": false,
24+
"backgroundColor": "transparent",
25+
"bold": false,
26+
"italic": false
27+
},
28+
{
29+
"tag": "?",
30+
"color": "#3498DB",
31+
"strikethrough": false,
32+
"underline": false,
33+
"backgroundColor": "transparent",
34+
"bold": false,
35+
"italic": false
36+
},
37+
{
38+
"tag": "//",
39+
"color": "#474747",
40+
"strikethrough": true,
41+
"underline": false,
42+
"backgroundColor": "transparent",
43+
"bold": false,
44+
"italic": false
45+
},
46+
{
47+
"tag": "todo",
48+
"color": "#FF8C00",
49+
"strikethrough": false,
50+
"underline": false,
51+
"backgroundColor": "transparent",
52+
"bold": false,
53+
"italic": false
54+
},
55+
{
56+
"tag": "*",
57+
"color": "#98C379",
58+
"strikethrough": false,
59+
"underline": false,
60+
"backgroundColor": "transparent",
61+
"bold": false,
62+
"italic": false
63+
}
64+
]
65+
}

0 commit comments

Comments
 (0)