Skip to content

Commit 03ce848

Browse files
0 parents  commit 03ce848

22 files changed

Lines changed: 16311 additions & 0 deletions

.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+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintrc

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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": ["react", "react-hooks", "jsx-a11y", "prettier"],
18+
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
19+
"rules": {
20+
"prettier/prettier": "error",
21+
"import/prefer-default-export": "off",
22+
"react/prop-types": "off",
23+
"react/jsx-filename-extension": "off",
24+
"react/jsx-props-no-spreading": "off",
25+
"import/extensions": [
26+
"error",
27+
"ignorePackages",
28+
{
29+
"ts": "never",
30+
"tsx": "never",
31+
"js": "never",
32+
"jsx": "never"
33+
}
34+
]
35+
},
36+
"overrides": [
37+
{
38+
"files": "**/*.+(ts|tsx)",
39+
"parser": "@typescript-eslint/parser",
40+
"parserOptions": {
41+
"project": "./tsconfig.json"
42+
},
43+
"plugins": ["@typescript-eslint/eslint-plugin"],
44+
"extends": [
45+
"plugin:@typescript-eslint/eslint-recommended",
46+
"plugin:@typescript-eslint/recommended",
47+
"prettier"
48+
],
49+
"rules": {
50+
"@typescript-eslint/explicit-function-return-type": "off",
51+
"@typescript-eslint/no-explicit-any": "off",
52+
"@typescript-eslint/no-var-requires": "off",
53+
"no-use-before-define": [0],
54+
"@typescript-eslint/no-use-before-define": [1],
55+
"@typescript-eslint/quotes": [
56+
2,
57+
"backtick",
58+
{
59+
"avoidEscape": true
60+
}
61+
]
62+
}
63+
}
64+
],
65+
"settings": {
66+
"import/resolver": {
67+
"root-import": {
68+
"rootPathPrefix": "@",
69+
"rootPathSuffix": "src",
70+
"extensions": [".js", ".ts", ".tsx", ".jsx", ".mdx"]
71+
}
72+
}
73+
}
74+
}

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
# gatsby
12+
.cache/
13+
public/
14+
15+
# misc
16+
.DS_Store
17+
.env\*
18+
19+
# debug
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log\*

.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

.prettierrc

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

0 commit comments

Comments
 (0)