Skip to content

Commit 6c9b530

Browse files
committed
chore: use bun instead of pnpm
1 parent b245290 commit 6c9b530

File tree

6 files changed

+22
-468
lines changed

6 files changed

+22
-468
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm exec lint-staged
4+
bun run lint
5+
bun run format

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
33
"organizeImports": {
44
"enabled": true
55
},

bun.lockb

24 KB
Binary file not shown.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
"author": "Dang Van Thanh <[email protected]>",
2020
"license": "MIT",
2121
"devDependencies": {
22-
"@biomejs/biome": "1.4.1",
23-
"husky": "^8.0.3",
24-
"lint-staged": "^15.2.0"
22+
"@biomejs/biome": "1.6.4",
23+
"husky": "^9.0.11",
24+
"lint-staged": "^15.2.2"
2525
},
2626
"scripts": {
27-
"prepare": "husky install"
27+
"lint": "bunx @biomejs/biome check ./index.js --apply",
28+
"format": "bunx @biomejs/biome format ./index.js --write",
29+
"prepare": "husky"
2830
},
2931
"lint-staged": {
30-
"**/*": "pnpm dlx @biomejs/biome format ./index.js --write"
32+
"*.{js,ts}": ["bun run lint", "bun run format"]
3133
}
3234
}

0 commit comments

Comments
 (0)