Skip to content

Commit

Permalink
chore: replace ESLint and Prettier with Biome (#23)
Browse files Browse the repository at this point in the history
* chore: replace ESLint and Prettier with Biome

* chore: follow all Biome established rules
  • Loading branch information
craigzour authored Aug 13, 2024
1 parent ac90c73 commit 5dcdee8
Show file tree
Hide file tree
Showing 26 changed files with 196 additions and 1,009 deletions.
5 changes: 0 additions & 5 deletions .editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
20 changes: 20 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": ["**/build/**", "package.json", "pnpm-lock.yaml"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"all": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
}
}
26 changes: 0 additions & 26 deletions eslint.config.mjs

This file was deleted.

14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"start": "node build/server.js",
"dev": "nodemon",
"test": "vitest run",
"lint": "eslint --fix",
"lint:check": "eslint",
"format": "prettier --write .",
"format:check": "prettier --check ."
"lint": "biome lint --write .",
"lint:check": "biome lint .",
"format": "biome format --write .",
"format:check": "biome format ."
},
"nodemonConfig": {
"watch": [
Expand All @@ -28,18 +28,14 @@
"express": "^4.19.2"
},
"devDependencies": {
"@eslint/js": "^9.8.0",
"@types/eslint__js": "^8.42.3",
"@biomejs/biome": "^1.8.3",
"@types/express": "^4.17.21",
"@types/node": "^22.1.0",
"@types/supertest": "^6.0.2",
"eslint": "~9.8.0",
"nodemon": "^3.1.4",
"prettier": "^3.3.3",
"supertest": "^7.0.0",
"tsx": "^4.16.5",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.1",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@9.6.0"
Expand Down
Loading

0 comments on commit 5dcdee8

Please sign in to comment.