Skip to content

Commit f290750

Browse files
committed
build: add biome
1 parent 294d43e commit f290750

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

biome.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false, "ignore": [] },
5+
"formatter": {
6+
"enabled": true,
7+
"formatWithErrors": false,
8+
"indentStyle": "space"
9+
},
10+
"organizeImports": { "enabled": true },
11+
"linter": { "enabled": true, "rules": { "recommended": true } },
12+
"css": {
13+
"formatter": {
14+
"quoteStyle": "single"
15+
}
16+
},
17+
"javascript": {
18+
"formatter": {
19+
"quoteStyle": "single"
20+
}
21+
}
22+
}

bun.lock

+20-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"": {
55
"dependencies": {
66
"@penpot/plugin-styles": "1.1.0",
7-
"@penpot/plugin-types": "1.1.0",
87
"alpinejs": "^3.14.8",
98
"d3-scale": "^4.0.2",
109
"d3-shape": "^3.2.0",
1110
},
1211
"devDependencies": {
12+
"@biomejs/biome": "^1.9.4",
13+
"@penpot/plugin-types": "1.1.0",
1314
"@types/alpinejs": "^3.13.11",
1415
"@types/d3-scale": "^4.0.8",
1516
"@types/d3-shape": "^3.1.7",
@@ -20,6 +21,24 @@
2021
},
2122
},
2223
"packages": {
24+
"@biomejs/biome": ["@biomejs/[email protected]", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "1.9.4", "@biomejs/cli-darwin-x64": "1.9.4", "@biomejs/cli-linux-arm64": "1.9.4", "@biomejs/cli-linux-arm64-musl": "1.9.4", "@biomejs/cli-linux-x64": "1.9.4", "@biomejs/cli-linux-x64-musl": "1.9.4", "@biomejs/cli-win32-arm64": "1.9.4", "@biomejs/cli-win32-x64": "1.9.4" }, "bin": { "biome": "bin/biome" } }, "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog=="],
25+
26+
"@biomejs/cli-darwin-arm64": ["@biomejs/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw=="],
27+
28+
"@biomejs/cli-darwin-x64": ["@biomejs/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg=="],
29+
30+
"@biomejs/cli-linux-arm64": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g=="],
31+
32+
"@biomejs/cli-linux-arm64-musl": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA=="],
33+
34+
"@biomejs/cli-linux-x64": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg=="],
35+
36+
"@biomejs/cli-linux-x64-musl": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg=="],
37+
38+
"@biomejs/cli-win32-arm64": ["@biomejs/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg=="],
39+
40+
"@biomejs/cli-win32-x64": ["@biomejs/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="],
41+
2342
"@commander-js/extra-typings": ["@commander-js/[email protected]", "", { "peerDependencies": { "commander": "~12.1.0" } }, "sha512-wf/lwQvWAA0goIghcb91dQYpkLBcyhOhQNqG/VgWhnKzgt+UOMvra7EX/2fv70arm5RW+PUHoQHHDa6/p77Eqg=="],
2443

2544
"@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ=="],

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite build --watch",
8-
"build": "tsc && vite build"
8+
"build": "tsc && vite build",
9+
"lint": "biome lint --write src",
10+
"format": "biome format --write src"
911
},
1012
"packageManager": "[email protected]",
1113
"repository": {
@@ -21,10 +23,11 @@
2123
"d3-shape": "^3.2.0"
2224
},
2325
"devDependencies": {
26+
"@biomejs/biome": "^1.9.4",
27+
"@penpot/plugin-types": "1.1.0",
2428
"@types/alpinejs": "^3.13.11",
2529
"@types/d3-scale": "^4.0.8",
2630
"@types/d3-shape": "^3.1.7",
27-
"@penpot/plugin-types": "1.1.0",
2831
"typescript": "^5.7.2",
2932
"vite": "^5.4.11",
3033
"vite-live-preview": "^0.3.2"

0 commit comments

Comments
 (0)