Skip to content

Commit 7f6c67d

Browse files
committed
chore: initialize project using Create React App
0 parents  commit 7f6c67d

29 files changed

+13972
-0
lines changed

.eslintrc.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"plugin:react/recommended",
8+
"airbnb",
9+
"plugin:@typescript-eslint/recommended",
10+
"prettier"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaFeatures": {
15+
"jsx": true
16+
},
17+
"ecmaVersion": "latest",
18+
"sourceType": "module"
19+
},
20+
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
21+
"rules": {
22+
"prettier/prettier": "error",
23+
"import/extensions": [
24+
"error",
25+
"ignorePackages",
26+
{
27+
"ts": "never",
28+
"tsx": "never"
29+
}
30+
],
31+
"@typescript-eslint/explicit-function-return-type": [
32+
"error",
33+
{
34+
"allowExpressions": true
35+
}
36+
],
37+
"react-hooks/rules-of-hooks": "error",
38+
"react-hooks/exhaustive-deps": "warn",
39+
"comma-dangle": "off",
40+
"@typescript-eslint/comma-dangle": "off",
41+
"react/jsx-one-expression-per-line": "off",
42+
"react/jsx-filename-extension": [
43+
"warn",
44+
{
45+
"extensions": [".tsx"]
46+
}
47+
],
48+
"react/function-component-definition": [
49+
2,
50+
{
51+
"namedComponents": "arrow-function"
52+
}
53+
]
54+
},
55+
"settings": {
56+
"import/resolver": {
57+
"typescript": {}
58+
}
59+
}
60+
}

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# editor files
26+
/.idea

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

.husky/post-checkout

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn install

.husky/post-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
git status

.husky/post-merge

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn install

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn pretty-quick --staged && yarn lint && yarn test:once

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint && yarn test:once && yarn build

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"jsxSingleQuote": false,
6+
"printWidth": 80
7+
}

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-3.2.0.cjs

0 commit comments

Comments
 (0)