Skip to content

Commit 1d284ce

Browse files
committed
feat: init project
0 parents  commit 1d284ce

Some content is hidden

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

55 files changed

+8737
-0
lines changed

Diff for: .editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.{diff,md}]
14+
trim_trailing_whitespace = false

Diff for: .eslintignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/docker
2+
node_modules
3+
**/coverage/
4+
*.js
5+
!.storybook
6+
.changeset
7+
dist
8+
CHANGELOG.md
9+
*.typegen.ts
10+
.next/
11+
kube-manifests/
12+
buildspec.yml
13+
deployspec.yml
14+
.storybook/*.html
15+
cz-adapter.cjs

Diff for: .eslintrc.json

+158
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc",
3+
"extends": ["airbnb", "prettier"],
4+
"plugins": ["prettier"],
5+
"env": {
6+
"es2020": true
7+
},
8+
"rules": {
9+
"prettier/prettier": [
10+
"error",
11+
{
12+
"singleQuote": true,
13+
"endOfLine": "auto"
14+
}
15+
],
16+
"no-nested-ternary": "off",
17+
"no-param-reassign": "off",
18+
"no-await-in-loop": "off",
19+
"no-continue": "off",
20+
"no-plusplus": "off",
21+
"no-bitwise": "off",
22+
"no-empty": "off",
23+
"consistent-return": "off",
24+
"no-promise-executor-return": "off",
25+
"class-methods-use-this": "off",
26+
"import/no-cycle": "off",
27+
"unused-imports/no-unused-imports": "error",
28+
"unused-imports/no-unused-vars": [
29+
"error",
30+
{
31+
"argsIgnorePattern": "^_|[pP]rops$"
32+
}
33+
],
34+
"@typescript-eslint/return-await": "off"
35+
},
36+
"overrides": [
37+
{
38+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts"],
39+
"parser": "@typescript-eslint/parser",
40+
"extends": [
41+
"eslint:recommended",
42+
"plugin:@typescript-eslint/recommended",
43+
"plugin:react-hooks/recommended",
44+
"plugin:react/recommended",
45+
"airbnb",
46+
"airbnb-typescript",
47+
"prettier"
48+
],
49+
"parserOptions": {
50+
"project": ["./tsconfig.json"]
51+
},
52+
"plugins": [
53+
"@typescript-eslint",
54+
"unused-imports",
55+
"react",
56+
"react-hooks",
57+
"prettier"
58+
],
59+
"rules": {
60+
"prettier/prettier": [
61+
"error",
62+
{
63+
"singleQuote": true,
64+
"endOfLine": "auto"
65+
}
66+
],
67+
"react/no-deprecated": 2,
68+
"react/react-in-jsx-scope": 0,
69+
"react/display-name": [
70+
1,
71+
{
72+
"ignoreTranspilerName": false
73+
}
74+
],
75+
"react/jsx-no-bind": "off",
76+
"react/jsx-no-comment-textnodes": 2,
77+
"react/jsx-no-duplicate-props": 2,
78+
"react/jsx-no-target-blank": 2,
79+
"react/jsx-no-undef": 2,
80+
"react/jsx-tag-spacing": [
81+
2,
82+
{
83+
"beforeSelfClosing": "always"
84+
}
85+
],
86+
"react/jsx-uses-react": 2,
87+
"react/jsx-uses-vars": 2,
88+
"react/jsx-key": [
89+
2,
90+
{
91+
"checkFragmentShorthand": true
92+
}
93+
],
94+
"react/self-closing-comp": 2,
95+
"react/prefer-es6-class": 2,
96+
"react/prefer-stateless-function": 1,
97+
"react/require-render-return": 2,
98+
"react/no-danger": 1,
99+
"react/no-did-mount-set-state": 2,
100+
"react/no-did-update-set-state": 2,
101+
"react/no-find-dom-node": 2,
102+
"react/no-is-mounted": 2,
103+
"react/no-string-refs": 2,
104+
"import/extensions": "off",
105+
"react/function-component-definition": "off",
106+
"react/jsx-no-constructed-context-values": "off",
107+
"react/jsx-no-useless-fragment": "off",
108+
"react/no-array-index-key": "off",
109+
"react/no-unstable-nested-components": "off",
110+
"react/no-unused-prop-types": "off",
111+
"react/destructuring-assignment": "off",
112+
"react/require-default-props": "off",
113+
"react/jsx-props-no-spreading": "off",
114+
"@typescript-eslint/comma-dangle": "off",
115+
"import/prefer-default-export": "off",
116+
"import/order": "off",
117+
"@typescript-eslint/no-unused-vars": "off",
118+
"@typescript-eslint/no-use-before-define": "off",
119+
"@typescript-eslint/no-shadow": "off",
120+
"@typescript-eslint/no-unused-expressions": "off",
121+
"@typescript-eslint/consistent-type-imports": "off",
122+
"jsx-a11y/label-has-associated-control": "off",
123+
"no-nested-ternary": "off",
124+
"no-param-reassign": "off",
125+
"no-await-in-loop": "off",
126+
"no-continue": "off",
127+
"no-plusplus": "off",
128+
"no-bitwise": "off",
129+
"no-empty": "off",
130+
"consistent-return": "off",
131+
"no-promise-executor-return": "off",
132+
"class-methods-use-this": "off",
133+
"import/no-cycle": "off",
134+
"unused-imports/no-unused-imports": "error",
135+
"unused-imports/no-unused-vars": [
136+
"error",
137+
{
138+
"argsIgnorePattern": "^_|[pP]rops$"
139+
}
140+
],
141+
"@typescript-eslint/return-await": "off",
142+
"guard-for-in": "off",
143+
"no-restricted-syntax": "off",
144+
"@typescript-eslint/no-explicit-any": "off",
145+
"max-classes-per-file": "off",
146+
"no-underscore-dangle": "off",
147+
"@typescript-eslint/naming-convention": "off",
148+
"react/prop-types": "off",
149+
"react/button-has-type": "off",
150+
"jsx-a11y/click-events-have-key-events": "off",
151+
"jsx-a11y/no-static-element-interactions": "off",
152+
"no-alert": "off",
153+
"jsx-a11y/control-has-associated-label": "off",
154+
"@typescript-eslint/ban-types": "off"
155+
}
156+
}
157+
]
158+
}

Diff for: .github/workflows/build.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
release:
10+
if: "contains(github.event.head_commit.message, 'chore: release')"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v3
19+
20+
- name: Use Node.js v20
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
registry-url: https://registry.npmjs.org/
25+
cache: pnpm
26+
27+
- run: pnpm install
28+
29+
- name: Lint
30+
run: pnpm run lint
31+
32+
- name: Test
33+
run: pnpm run test
34+
35+
- name: Build
36+
run: pnpm run build
37+
38+
- name: Git commit
39+
id: commit
40+
run: |
41+
git config --local user.email github-actions[bot]@users.noreply.github.com
42+
git config --local user.name github-actions[bot]
43+
git config --global core.autocrlf true
44+
git config --global core.safecrlf false
45+
git add .
46+
git commit -m "chore: ci build" -a
47+
continue-on-error: true
48+
49+
- name: Git push
50+
uses: ad-m/github-push-action@master
51+
if: ${{ steps.commit.outcome == 'success' }}
52+
with:
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
branch: ${{ github.ref }}
55+
56+
- name: Log
57+
if: ${{ steps.commit.outcome != 'success' }}
58+
run: echo Nothing to commit.

Diff for: .github/workflows/check.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
check:
13+
if: "!contains(github.event.head_commit.message, 'chore: release')"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v3
22+
23+
- name: Use Node.js v20
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20'
27+
registry-url: https://registry.npmjs.org/
28+
cache: pnpm
29+
30+
- run: pnpm install
31+
32+
- name: Lint
33+
run: pnpm run lint
34+
35+
- name: Test
36+
run: pnpm run test

Diff for: .github/workflows/release-please.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v4

Diff for: .gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
*.local
12+
.turbo
13+
dist
14+
15+
# Editor directories and files
16+
.idea
17+
.DS_Store
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?
23+
24+
tsconfig.tsbuildinfo

Diff for: .husky/commit-msg

+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+
pnpm exec commitlint --edit ${1}

Diff for: .husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

Diff for: .husky/pre-push

+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+
pnpm run test

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

Diff for: .prettierignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**/*.template
2+
.changeset
3+
.coverage_*
4+
.github
5+
CHANGELOG.md
6+
coverage
7+
dist
8+
node_modules
9+
pnpm-lock.yaml
10+
*.hbs
11+
.next/
12+
kube-manifests/
13+
buildspec.yml
14+
deployspec.yml
15+
/docker

Diff for: .release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"2.24.3"}

0 commit comments

Comments
 (0)