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 0000000..1c478ed Binary files /dev/null and b/bun.lockb differ 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 + } +}