Replace ESLint with Biome for linting and formatting, update TypeScript configuration to target ESNext, and refactor code to use type imports. Add new biome.json configuration file and adjust test cases for error handling.

This commit is contained in:
Luke Hagar
2025-09-26 05:28:23 +00:00
parent efed32466f
commit e2ed313ad0
14 changed files with 164 additions and 155 deletions

View File

@@ -35,8 +35,8 @@
"test:coverage": "bun test --coverage",
"test:watch": "bun test --watch",
"test:ci": "bun test --reporter=verbose",
"lint": "eslint src/**/*.ts test/**/*.ts --ext .ts",
"lint:fix": "eslint src/**/*.ts test/**/*.ts --ext .ts --fix",
"lint": "biome lint src/ test/",
"lint:fix": "biome lint --write src/ test/",
"type-check": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\"",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"*.{json,md,yml,yaml}\"",
@@ -62,18 +62,14 @@
"prettier": "^3.0.0"
},
"devDependencies": {
"@biomejs/biome": "^2.2.4",
"@types/bun": "latest",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"
},
"dependencies": {
"js-yaml": "^4.1.0",
"@types/js-yaml": "^4.0.0"
"@types/js-yaml": "^4.0.0",
"js-yaml": "^4.1.0"
}
}