Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Sep 25, 2024
1 parent b108d30 commit d961b2a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 40 deletions.
4 changes: 1 addition & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"extends": [
"@ow3"
]
"extends": ["@ow3"]
}
8 changes: 2 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 1 addition & 3 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
await Bun.build({
entrypoints: [
'src/index.ts',
],
entrypoints: ['src/index.ts'],

outdir: './dist',

Expand Down
22 changes: 17 additions & 5 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down
25 changes: 8 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@
"description": "A simple TypeScript starter kit using Bun.",
"author": "Chris Breuer <[email protected]>",
"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",
Expand All @@ -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",
Expand All @@ -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": {
Expand Down
8 changes: 2 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d961b2a

Please sign in to comment.