Skip to content

Commit b2f3e3e

Browse files
committed
Initial commit
0 parents  commit b2f3e3e

28 files changed

+4552
-0
lines changed

.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+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc",
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": "tsconfig.json"
6+
},
7+
"plugins": ["@typescript-eslint"],
8+
"extends": [
9+
"next/core-web-vitals",
10+
"plugin:@typescript-eslint/recommended-type-checked",
11+
"plugin:@typescript-eslint/stylistic-type-checked",
12+
"plugin:prettier/recommended",
13+
"plugin:tailwindcss/recommended"
14+
],
15+
"root": true,
16+
"rules": {
17+
"@next/next/no-html-link-for-pages": "off",
18+
"@next/next/no-img-element": "off",
19+
"tailwindcss/no-custom-classname": "off",
20+
"@typescript-eslint/array-type": "off",
21+
"@typescript-eslint/consistent-type-definitions": "off",
22+
"@typescript-eslint/consistent-type-imports": [
23+
"warn",
24+
{ "prefer": "type-imports", "fixStyle": "inline-type-imports" }
25+
],
26+
"@typescript-eslint/no-unused-vars": [
27+
"warn",
28+
{ "argsIgnorePattern": "^_" }
29+
],
30+
"@typescript-eslint/require-await": "off",
31+
"@typescript-eslint/no-misused-promises": [
32+
"error",
33+
{ "checksVoidReturn": { "attributes": false } }
34+
]
35+
},
36+
"settings": {
37+
"tailwindcss": {
38+
"callees": ["cn"]
39+
}
40+
},
41+
"overrides": [
42+
{
43+
"files": ["tailwind.config.ts"],
44+
"rules": {
45+
"@typescript-eslint/no-require-imports": "off"
46+
}
47+
}
48+
]
49+
}

.github/setup/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Setup and install"
2+
description: "Common setup steps for Actions"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: pnpm/action-setup@v4
8+
- uses: actions/setup-node@v4
9+
with:
10+
node-version-file: .nvmrc
11+
cache: pnpm
12+
13+
- shell: bash
14+
run: pnpm install --frozen-lockfile

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
merge_group:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: ./.github/setup
19+
20+
- name: lint, typecheck, format
21+
run: pnpm check
22+
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: ./.github/setup
28+
29+
- run: pnpm build

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# env files (can opt-in for committing if needed)
33+
.env*
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts

.nvmrc

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

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"bradlc.vscode-tailwindcss"
6+
]
7+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true,
7+
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
8+
"typescript.tsdk": "node_modules/typescript/lib"
9+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 OreQr
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)