diff --git a/.github/renovate.json b/.github/renovate.json index 3a9d450..66937d2 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,3 @@ { - "extends": [ - "@ow3" - ] + "extends": ["@ow3"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 9eef31f..d336891 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -26,12 +26,8 @@ "CHANGELOG.md": true }, - "cSpell.ignorePaths": [ - "node_modules" - ], - "cSpell.dictionaries": [ - "custom-dictionary" - ], + "cSpell.ignorePaths": ["node_modules"], + "cSpell.dictionaries": ["custom-dictionary"], "cSpell.diagnosticLevel": "Hint", "cSpell.customDictionaries": { "bun-plugin-env": { diff --git a/build.ts b/build.ts index acd5645..19576b2 100644 --- a/build.ts +++ b/build.ts @@ -1,7 +1,5 @@ await Bun.build({ - entrypoints: [ - 'src/index.ts', - ], + entrypoints: ['src/index.ts'], outdir: './dist', diff --git a/commitlint.config.js b/commitlint.config.js index 6aa3a72..eb76c8d 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -7,7 +7,7 @@ export default { }, prompt: { messages: { - type: 'Select the type of change that you\'re committing:', + type: "Select the type of change that you're committing:", scope: 'Select the SCOPE of this change (optional):', customScope: 'Select the SCOPE of this change:', subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', @@ -23,12 +23,24 @@ export default { { value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' }, { value: 'docs', name: 'docs: 📝 Documentation only changes', emoji: ':memo:' }, { value: 'style', name: 'style: 💄 Changes that do not affect the meaning of the code', emoji: ':lipstick:' }, - { value: 'refactor', name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' }, + { + value: 'refactor', + name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature', + emoji: ':recycle:', + }, { value: 'perf', name: 'perf: ⚡️ A code change that improves performance', emoji: ':zap:' }, - { value: 'test', name: 'test: ✅ Adding missing tests or adjusting existing tests', emoji: ':white_check_mark:' }, - { value: 'build', name: 'build: 📦️ Changes that affect the build system or external dependencies', emoji: ':package:' }, + { + value: 'test', + name: 'test: ✅ Adding missing tests or adjusting existing tests', + emoji: ':white_check_mark:', + }, + { + value: 'build', + name: 'build: 📦️ Changes that affect the build system or external dependencies', + emoji: ':package:', + }, { value: 'ci', name: 'ci: 🎡 Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' }, - { value: 'chore', name: 'chore: 🔨 Other changes that don\'t modify src or test files', emoji: ':hammer:' }, + { value: 'chore', name: "chore: 🔨 Other changes that don't modify src or test files", emoji: ':hammer:' }, { value: 'revert', name: 'revert: ⏪️ Reverts a previous commit', emoji: ':rewind:' }, ], useEmoji: false, diff --git a/package.json b/package.json index f20ef78..4c80fcd 100644 --- a/package.json +++ b/package.json @@ -5,21 +5,15 @@ "description": "A simple TypeScript starter kit using Bun.", "author": "Chris Breuer ", "license": "MIT", - "homepage": "https://github.com/stacksjs/bun-ts-starter#readme", + "homepage": "https://github.com/stacksjs/ts-starter#readme", "repository": { "type": "git", - "url": "git+https://github.com/stacksjs/bun-ts-starter.git" + "url": "git+https://github.com/stacksjs/ts-starter.git" }, "bugs": { - "url": "https://github.com/stacksjs/bun-ts-starter/issues" + "url": "https://github.com/stacksjs/ts-starter/issues" }, - "keywords": [ - "typescript", - "starter", - "kit", - "bun", - "package" - ], + "keywords": ["typescript", "starter", "kit", "bun", "package"], "exports": { ".": { "bun": "./src/index.ts", @@ -33,14 +27,11 @@ }, "module": "./dist/index.js", "types": "./dist/index.d.ts", - "files": [ - "dist", - "src" - ], + "files": ["dist", "src"], "scripts": { "build": "bun --bun build.ts", - "lint": "eslint .", - "lint:fix": "bunx eslint . --fix", + "lint": "biome check .", + "lint:fix": "biome check --fix .", "fresh": "bunx rimraf node_modules/ bun.lock && bun i", "commit": "git cz", "changelog": "bunx changelogen --output CHANGELOG.md", @@ -67,7 +58,7 @@ "commit-msg": "bunx --no -- commitlint --edit $1" }, "lint-staged": { - "*.{js,jsx,ts,tsx,vue}": "bunx biome --fix" + "*.{js,jsx,ts,tsx,vue}": "biome check --fix ." }, "config": { "commitizen": { diff --git a/tsconfig.json b/tsconfig.json index c5816cb..fbeeace 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,16 +1,12 @@ { "compilerOptions": { "target": "esnext", - "lib": [ - "esnext" - ], + "lib": ["esnext"], "moduleDetection": "force", "module": "esnext", "moduleResolution": "bundler", "resolveJsonModule": true, - "types": [ - "bun" - ], + "types": ["bun"], "allowImportingTsExtensions": true, "strict": true, "strictNullChecks": true,