Skip to content

Commit cb8a197

Browse files
aster-voidnakaterm
andauthored
setup development env (#33)
* setup flake and direnv * setup biome and migrate prettier/eslint to it * add npm:workspaces and bun * setup ci * only run ci on push -> main * remove eslint and prettier checks * treewide: apply biome fixes * fix types * fix: Biome と daisyUI の競合を解決 * rm eslint-*, eslint, prettier from package.json * insert fieldset * setup lefthook * use npx @biomejs/biome instead of npx biome in case * concurrently run dev * update package-lock.json --------- Co-authored-by: naka-12 <[email protected]>
1 parent 527ba30 commit cb8a197

32 files changed

+7940
-7897
lines changed

.envrc

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

.github/workflows/check.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
biome:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: oven-sh/setup-bun@v2
15+
- run: bun install --frozen-lockfile
16+
- run: bun biome ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.direnv

biome.jsonc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": []
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"lineWidth": 120,
15+
"indentStyle": "space",
16+
"indentWidth": 2
17+
},
18+
"organizeImports": {
19+
"enabled": true
20+
},
21+
"linter": {
22+
"enabled": true,
23+
"rules": {
24+
"recommended": true,
25+
"correctness": {
26+
"noUnknownProperty": "off"
27+
},
28+
"complexity": {
29+
"noForEach": "off"
30+
},
31+
"a11y": {
32+
"useButtonType": "off"
33+
}
34+
}
35+
},
36+
"javascript": {
37+
"formatter": {
38+
"quoteStyle": "double"
39+
}
40+
}
41+
}

bun.lock

Lines changed: 1077 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

client/.prettierrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

client/eslint.config.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)