Skip to content

Commit 870a004

Browse files
init
0 parents  commit 870a004

Some content is hidden

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

54 files changed

+17070
-0
lines changed

.commitlintrc.json

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

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
end_of_line = lf
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintrc

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"parserOptions": {
7+
"ecmaFeatures": {
8+
"jsx": true
9+
},
10+
"ecmaVersion": 2019,
11+
"sourceType": "module"
12+
},
13+
"globals": {
14+
"Atomics": "readonly",
15+
"SharedArrayBuffer": "readonly"
16+
},
17+
"plugins": ["import", "jsx-a11y", "react", "react-hooks", "prettier"],
18+
"extends": ["airbnb", "eslint-config-prettier", "prettier/react"],
19+
"rules": {
20+
"prettier/prettier": "error",
21+
"camelcase": "off",
22+
"import/prefer-default-export": "off",
23+
"react/prop-types": "off",
24+
"react/jsx-filename-extension": "off",
25+
"react/jsx-props-no-spreading": "off",
26+
"react/no-unused-prop-types": "off",
27+
"react/react-in-jsx-scope": "off",
28+
"react/require-default-props": "off",
29+
"import/extensions": [
30+
"error",
31+
"ignorePackages",
32+
{
33+
"ts": "never",
34+
"tsx": "never",
35+
"js": "never",
36+
"jsx": "never"
37+
}
38+
],
39+
"quotes": "off",
40+
"jsx-a11y/anchor-is-valid": [
41+
"error",
42+
{
43+
"components": ["Link"],
44+
"specialLink": ["hrefLeft", "hrefRight"],
45+
"aspects": ["invalidHref", "preferButton"]
46+
}
47+
]
48+
},
49+
"overrides": [
50+
{
51+
"files": "**/*.+(ts|tsx)",
52+
"parser": "@typescript-eslint/parser",
53+
"plugins": ["@typescript-eslint/eslint-plugin"],
54+
"extends": [
55+
"plugin:@typescript-eslint/recommended",
56+
"eslint-config-prettier/@typescript-eslint"
57+
],
58+
"rules": {
59+
"@typescript-eslint/explicit-function-return-type": "off",
60+
"@typescript-eslint/explicit-module-boundary-types": "off",
61+
"no-use-before-define": [0],
62+
"@typescript-eslint/no-use-before-define": [1],
63+
"@typescript-eslint/no-explicit-any": "off",
64+
"@typescript-eslint/no-var-requires": "off",
65+
"max-len": ["error", {"code": 120, "ignoreUrls": true}],
66+
"react/jsx-first-prop-new-line": [2, "multiline"],
67+
"react/jsx-max-props-per-line": [
68+
2,
69+
{ "maximum": 1, "when": "multiline" }
70+
],
71+
"@typescript-eslint/quotes": [
72+
2,
73+
"backtick",
74+
{
75+
"avoidEscape": true
76+
}
77+
]
78+
}
79+
}
80+
],
81+
"settings": {
82+
"import/resolver": {
83+
"typescript": {
84+
"project": "."
85+
}
86+
},
87+
"react": {
88+
"version": "detect"
89+
}
90+
}
91+
}

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

.husky/.gitignore

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

.husky/commit-msg

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

.husky/common.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
command_exists () {
2+
command -v "$1" >/dev/null 2>&1
3+
}
4+
5+
# Workaround for Windows 10, Git Bash and Yarn
6+
if command_exists winpty && test -t 1; then
7+
exec < /dev/tty
8+
fi

.husky/pre-commit

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

.husky/prepare-commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
. "$(dirname "$0")/common.sh"
4+
5+
exec < /dev/tty && yarn cz --hook || true

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact = true

0 commit comments

Comments
 (0)