From 5f8a7ad79f700044f61583f6ce25486bf1efc184 Mon Sep 17 00:00:00 2001 From: wont-stream Date: Fri, 17 Jan 2025 18:36:40 -0500 Subject: [PATCH] Formatting & add biome --- biome.json | 30 ++++++++++++++++++++++++++++++ bun.lockb | Bin 5452 -> 9004 bytes index.ts | 2 +- package.json | 48 +++++++++++++++++++++++++----------------------- 4 files changed, 56 insertions(+), 24 deletions(-) create mode 100644 biome.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..2ed983c --- /dev/null +++ b/biome.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "vcs": { + "enabled": false, + "clientKind": "git", + "useIgnoreFile": false + }, + "files": { + "ignoreUnknown": false, + "ignore": ["./dist"] + }, + "formatter": { + "enabled": true, + "indentStyle": "tab" + }, + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double" + } + } +} diff --git a/bun.lockb b/bun.lockb index 1f20f45eed77708c6aeef143557ea2ce7430ae5c..2025bc0b4d16fa6ad0e67fb2e1f4358d333374f2 100644 GIT binary patch delta 3110 zcmb_ec~BEq7~fr14ADS9i6qETs24~QZh>H!Di}co5wT#)aEJ&5v;h=Fn}Af*Q3RhA z@x=Q=suM3z1f@D+t>>Txt0FC9wNh`b(!qXjlO-_0KRVMl?EbRf@!Risyl=0#RE3m^ z$M}036U2;u?EhoxsW~Sio66f0d@JrB>|QspZuOJO_^U6sI1$Vel+AQdj~D132qGyr zYi>@al1K%?AcD{w0W=4kuS!Ww&LIdHJoDjM0>}fzEEsJ7xq!YDL6`v+0b>6qz`=m| zdO6rIeBLxc*nwOGXe)&uB>WHpJ~kl;Ak*B?V=dq?c-{>NQEEysmfg!x?A)T<|4rk_ z>KSW;3adlgoohFx*i2fV-dIK ztHAr*+o?A?-g{>J?rcIK1sO@IPz5O`&!QH%cOfAqC*4sj+!vt=xYyx3MN&v)GM)@V zu_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*Qf1!de$ca1$QJYdLdAi~!0N&ZZLB0ic1qZZ>OBgdY|9ut`37SEW6ESr zCVR#WlQV(j+sP||r1IpKKr(x>CbK=`dJxI=}SgJD}-8K>Yzg8Wi`{ z64t*m+e6Zr7-2GzlTS;eOT*Ge^_%pw9YU{_m>3Q94E0P*7#MOV`$|em!_v$|{it5G zt+tj-jCDo^dWJ@N7P}`mN=h=8O`a_&$#no09fFhlq?{(7lQNRBVTL5K77Noej1_$U e3 { experimentalCss: true, splitting: true, sourcemap: "linked", - ...(NOWATCH ? {minify: true} : {}) + ...(NOWATCH ? { minify: true } : {}), }); const end = Date.now(); if (NOWATCH) await cleanOldFiles(built.outputs); diff --git a/package.json b/package.json index b5a2f66..ff9f014 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,26 @@ { - "name": "bunhtml", - "module": "index.ts", - "type": "module", - "scripts": { - "build": "NOWATCH=1 bun .", - "start": "bun ." - }, - "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "dependencies": { - "lucide-preact": "^0.473.0", - "lucide-static": "^0.473.0", - "modern-normalize": "^3.0.1", - "preact": "^10.25.4", - "react": "npm:@preact/compat", - "react-dom": "npm:@preact/compat", - "react-icons": "^5.4.0" - } -} \ No newline at end of file + "name": "bunhtml", + "module": "index.ts", + "type": "module", + "scripts": { + "build": "NOWATCH=1 bun .", + "start": "bun ." + }, + "devDependencies": { + "@biomejs/biome": "1.9.4", + "@types/bun": "latest" + }, + "peerDependencies": { + "typescript": "^5.0.0" + }, + "dependencies": { + "lucide-preact": "^0.473.0", + "lucide-static": "^0.473.0", + "modern-normalize": "^3.0.1", + "preact": "^10.25.4", + "react": "npm:@preact/compat", + "react-dom": "npm:@preact/compat", + "react-icons": "^5.4.0" + }, + "trustedDependencies": ["@biomejs/biome"] +}