Skip to content

Commit

Permalink
feat: switch to bun & biome
Browse files Browse the repository at this point in the history
  • Loading branch information
nexpid committed Dec 5, 2024
1 parent 2c480ac commit b5ccefb
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 32 deletions.
33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
Binary file added bun.lockb
Binary file not shown.
26 changes: 18 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"name": "scripts",
"private": true,
"dependencies": {
"prettier": "^3.0.1"
},
"packageManager": "[email protected]"
}
{
"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"
}
}
24 changes: 0 additions & 24 deletions pnpm-lock.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit b5ccefb

Please sign in to comment.