From b5ccefbba72dc7ce3fc9a764c023e51c34362a5b Mon Sep 17 00:00:00 2001 From: nexpid <60316309+nexpid@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:17:12 +0100 Subject: [PATCH] feat: switch to bun & biome --- biome.json | 33 +++++++++++++++++++++++++++++++++ bun.lockb | Bin 0 -> 6684 bytes package.json | 26 ++++++++++++++++++-------- pnpm-lock.yaml | 24 ------------------------ tsconfig.json | 27 +++++++++++++++++++++++++++ 5 files changed, 78 insertions(+), 32 deletions(-) create mode 100644 biome.json create mode 100644 bun.lockb delete mode 100644 pnpm-lock.yaml create mode 100644 tsconfig.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..5d9581b --- /dev/null +++ b/biome.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "vcs": { + "enabled": false, + "clientKind": "git", + "useIgnoreFile": false + }, + "files": { + "ignoreUnknown": false, + "ignore": [] + }, + "formatter": { + "enabled": true, + "indentStyle": "tab" + }, + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "noExplicitAny": "off" + } + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double" + } + } +} diff --git a/bun.lockb b/bun.lockb new file mode 100644 index 0000000000000000000000000000000000000000..1c478edbb4e444c12eb42102c1e22a3c9c075aab GIT binary patch literal 6684 zcmeHMdtA)v8vo50B)76jBHfNSGMA>BO4EgnQo2em;WUk@rlu)#sf2BcB{tM9O0058 zMN$V#(T3D#-E&=Kcaz<^YQb{dwIUk^FHtMKJV*c zY0g&4W$bXVlr54bn1w5)y6`b2al)7gu|&j-h?B(%6wCyUE}b9{8Gcu$&lQUg z?%_=2SG*2?kRR>Y_Ko|M$SA3_EMquK0@716Lg(MOifRYo2~?XPjNq3pL8xW{?+3g9 zcz@unzy|=|LiNKOVi2@Lz#J3c&cH_iw*U^xRme=hQaz%n`3>O1pj`{x5cocd0}QDT zaYU#4{I$x5llo-wy~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me$ak@F*fL}s(u>& zG#fRva4bLh$=0AUed$|| z#^T6*yj5-DGlij+itA-AuOE%j7tb}xHk-EV^`sSFd_t-52%FVx_r4z$P!EC3V}qz!es?kuuLR! zHRE#39(7Kr3yj2szLwWByg=wIVdf*P@D{Z;1Ao>R&=&YeU zgYIT@k0NMvKcTw><$aW+5iWXjp)-x%GU(mmPT{M%pa;q0w>r{=FfbnCNC(n|bRylz z24oAe3B5(iC>;TxKm$mZAIjy;Q#yikcF6B5P~}ne13lV&dlrYqQ6qyk6|PX| z&}>*vEciEZdu;{RICSU|fkGr#5CpEa;Hn25WNcWr4g`VgEx7JMr+wzgvS-VvBB$}Pq+%C8Of*i@n-veYRA7^6q_KD zu_h-eL^7#BGF>4POCw#)Y&2W#*m0`~gDViS0@?aZ15~I(eS?46!T-%N#E)WaFA2dpP z8o+2bnPha^Bhx-?Mxq>~6Xi_u6xot4fvqHc`##|gn}Ga+HUoSDC!2H$9v4c)Oo>>k zOkyVS?Ao^u^(Km?w%ks=3j{J4=+v!-5XfTR3DUWrg6TZaZVNM3DVKCGNJ|Gf*p=mL zmPe{0<-i;7>ee`?d%)ng&ak+%`=HvMp)A$z>OP=)AIarYcv?N(htt}HcQ~>=z`E)~ zO+0m6EOKDC!P-N%!$SWfsP;JQu*eQj>XfQZqwiU+CNlz*rU6O7fyG5b{HU{{A;r{}A(iian literal 0 HcmV?d00001 diff --git a/package.json b/package.json index a866b66..52ff6a2 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,18 @@ -{ - "name": "scripts", - "private": true, - "dependencies": { - "prettier": "^3.0.1" - }, - "packageManager": "pnpm@9.0.6" -} +{ + "private": "true", + "scripts": { + "treewriter": "bun run .github/scripts/iconpack_tree_writer/index.ts", + "listiconpacks": "bun run .github/scripts/list_iconpacks/index.ts" + }, + "type": "module", + "devDependencies": { + "@biomejs/biome": "1.9.4", + "@types/bun": "latest" + }, + "trustedDependencies": [ + "@biomejs/biome" + ], + "peerDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index 735b0e8..0000000 --- a/pnpm-lock.yaml +++ /dev/null @@ -1,24 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - prettier: - specifier: ^3.0.1 - version: 3.2.5 - -packages: - - prettier@3.2.5: - resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} - engines: {node: '>=14'} - hasBin: true - -snapshots: - - prettier@3.2.5: {} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..238655f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + // Enable latest features + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + // Bundler mode + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } +}