Skip to content

Commit 25d9887

Browse files
committed
feat: πŸŽ‚
0 parents  commit 25d9887

Some content is hidden

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

62 files changed

+11189
-0
lines changed

β€Ž.editorconfigβ€Ž

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

β€Ž.eslintignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
out
3+
next.config.mjs

β€Ž.eslintrc.jsonβ€Ž

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"next/core-web-vitals",
5+
"plugin:@typescript-eslint/strict-type-checked",
6+
"plugin:@typescript-eslint/stylistic-type-checked",
7+
"prettier"
8+
],
9+
"parserOptions": {
10+
"project": "./tsconfig.json"
11+
},
12+
"rules": {
13+
"@typescript-eslint/consistent-type-imports": "error",
14+
"@typescript-eslint/strict-boolean-expressions": "error",
15+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
16+
"import/order": [
17+
"error",
18+
{
19+
"newlines-between": "never",
20+
"alphabetize": {
21+
"order": "asc",
22+
"caseInsensitive": true
23+
}
24+
}
25+
]
26+
}
27+
}

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
permissions:
10+
contents: read
11+
jobs:
12+
run-build:
13+
timeout-minutes: 10
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Setup node.js
23+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
24+
with:
25+
node-version-file: ".nvmrc"
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm i --frozen-lockfile
30+
31+
- name: Run build
32+
run: pnpm run build
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: code-ql
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: "29 20 * * 3"
11+
jobs:
12+
analyze:
13+
runs-on: ubuntu-22.04
14+
timeout-minutes: 360
15+
permissions:
16+
security-events: write
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
language: ["javascript-typescript"]
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3
27+
with:
28+
languages: ${{ matrix.language }}
29+
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3
32+
with:
33+
category: "/language:${{matrix.language}}"

β€Ž.github/workflows/lint.ymlβ€Ž

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
permissions:
10+
contents: read
11+
jobs:
12+
run-lint:
13+
timeout-minutes: 10
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Setup node.js
23+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
24+
with:
25+
node-version-file: ".nvmrc"
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm i --frozen-lockfile
30+
31+
- name: Run secretlint
32+
run: pnpm run secretlint
33+
34+
- name: Run format
35+
run: pnpm run format
36+
37+
- name: Run type-check
38+
run: pnpm run type-check
39+
40+
- name: Run lint
41+
run: pnpm run lint
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: misspell
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
permissions:
10+
contents: read
11+
jobs:
12+
run-misspell:
13+
timeout-minutes: 10
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
18+
19+
- name: Install misspell
20+
run: |
21+
wget -O - -q https://raw.githubusercontent.com/client9/misspell/c0b55c8239520f6b5aa15a0207ca8b28027ba49e/install-misspell.sh > ./install-misspell.sh
22+
echo "050ac939fcd7b6439454c92bb2c9219bf52b330efcb4cbf8b85129495ff267e4 install-misspell.sh" | shasum -a 256 -c
23+
cat ./install-misspell.sh | sh -s -- -b .
24+
echo "3b04babaa1ad1b8732459ca5abbd562e15d685a935b3a673e776d27318e98a0c misspell" | shasum -a 256 -c
25+
26+
- name: Run misspell
27+
run: git ls-files --empty-directory | xargs ./misspell -error
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: semantic-pr
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
permissions:
9+
pull-requests: read
10+
jobs:
11+
run-semantic-pr:
12+
timeout-minutes: 10
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- name: Run semantic-pr
16+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
17+
with:
18+
subjectPattern: ^(?![A-Z]).+$
19+
subjectPatternError: |
20+
The subject "{subject}" found in the pull request title "{title}"
21+
didn't match the configured pattern. Please ensure that the subject
22+
doesn't start with an uppercase character.
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

β€Ž.gitignoreβ€Ž

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
# Misc
9+
.DS_Store
10+
*.pem
11+
12+
# Debug
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
.pnpm-debug.log*
17+
18+
# Envs
19+
.env*
20+
21+
# TypeScript
22+
*.tsbuildinfo
23+
24+
# Dist
25+
dist
26+
27+
# Next.js
28+
.next
29+
out
30+
build
31+
next-env.d.ts

β€Ž.husky/pre-commitβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

0 commit comments

Comments
Β (0)