Skip to content

Commit ba58742

Browse files
committed
refactor: swap out eslint/prettier for biome
1 parent 364513c commit ba58742

File tree

14 files changed

+830
-3101
lines changed

14 files changed

+830
-3101
lines changed

.eslintignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/composite-actions/install/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ runs:
66
steps:
77
- uses: pnpm/action-setup@v3
88
with:
9-
version: 9.x.x
9+
version: 10.x.x
1010

1111
- name: Setup Node.js
1212
uses: actions/setup-node@v4
1313
with:
14-
node-version: 20.x
14+
node-version: 22.x
1515
registry-url: 'https://registry.npmjs.org'
1616
cache: 'pnpm'
1717

.github/workflows/quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
prettier:
22-
name: Prettier
22+
name: Format
2323
# Don't run on the first run after creating from template. (run_number == 1).
2424
if: github.run_number != 1
2525
runs-on: ubuntu-latest
@@ -30,8 +30,8 @@ jobs:
3030
- name: Install
3131
uses: ./.github/composite-actions/install
3232

33-
- name: Run Prettier
34-
run: pnpm prettier
33+
- name: Run Biome
34+
run: pnpm format
3535

3636
tests:
3737
name: Unit Tests

.prettierignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Amanda Guthrie
3+
Copyright (c) 2025 Amanda Guthrie
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
## Highlights
44

55
- changesets
6-
- eslint
76
- GitHub issue templates
87
- GitHub quality and release workflows
98
- pnpm workspace monorepo
10-
- prettier
11-
- Top-level build, reset, lint, prettier, test, typecheck, and release scripts.
9+
- biome
10+
- Top-level build, reset, biome, test, typecheck, and release scripts.
1211
- Typescript
1312

1413
## Initial Configuration

biome.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"ignore": ["build", "dist", "node_modules", "**/*.md", "pnpm-lock.yaml"]
5+
},
6+
"organizeImports": {
7+
"enabled": true
8+
},
9+
"formatter": {
10+
"lineWidth": 120
11+
},
12+
"javascript": {
13+
"formatter": {
14+
"enabled": true,
15+
"quoteStyle": "single",
16+
"jsxQuoteStyle": "double",
17+
"trailingCommas": "all",
18+
"semicolons": "always",
19+
"bracketSpacing": true
20+
}
21+
},
22+
"json": {
23+
"formatter": {
24+
"enabled": true,
25+
"indentWidth": 2
26+
},
27+
"parser": {
28+
"allowComments": true
29+
}
30+
},
31+
"linter": {
32+
"enabled": true,
33+
"rules": {
34+
"recommended": true,
35+
36+
"correctness": {
37+
"noUnusedVariables": {
38+
"level": "error"
39+
}
40+
},
41+
"suspicious": {
42+
"noExplicitAny": "off"
43+
},
44+
"style": {
45+
"noNonNullAssertion": "off"
46+
}
47+
}
48+
}
49+
}

package.json

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,28 @@
1717
"build-fast": "pnpm -r --parallel --filter=./packages/** build-fast",
1818
"build": "pnpm -r --filter=./packages/** build",
1919
"reset": "pnpm -r --parallel exec rimraf node_modules dist && rimraf node_modules dist",
20-
"lint": "eslint --ext .ts ",
21-
"prettier": "prettier --check packages",
22-
"prettier-fix": "prettier --write packages",
20+
"format": "pnpm biome lint packages",
21+
"format:fix": "pnpm biome check --write packages",
2322
"test": "pnpm -r --parallel --filter=./packages/** test --if-present",
2423
"typecheck": "tsc --noEmit",
2524
"release": "changeset publish",
2625
"release:dev:version": "changeset version --snapshot dev",
2726
"release:dev:publish": "changeset publish --no-git-tag --tag dev"
2827
},
2928
"devDependencies": {
30-
"@changesets/changelog-github": "^0.5.0",
31-
"@changesets/cli": "^2.27.3",
32-
"@types/eslint": "^8.56.10",
33-
"@types/node": "^20.12.12",
34-
"@typescript-eslint/eslint-plugin": "^7.11.0",
35-
"@typescript-eslint/parser": "^7.11.0",
36-
"eslint": "^8.57.0",
37-
"eslint-config-prettier": "^9.1.0",
38-
"glob": "^10.4.1",
39-
"prettier": "^3.2.5",
40-
"rimraf": "^5.0.7",
41-
"tsup": "^8.0.2",
42-
"tsx": "^4.11.0",
43-
"typescript": "^5.4.5"
29+
"@biomejs/biome": "1.9.4",
30+
"@changesets/changelog-github": "^0.5.1",
31+
"@changesets/cli": "^2.28.1",
32+
"@types/node": "^22.13.9",
33+
"glob": "^11.0.1",
34+
"rimraf": "^6.0.1",
35+
"tsup": "^8.4.0",
36+
"tsx": "^4.19.3",
37+
"typescript": "^5.8.2"
4438
},
45-
"packageManager": "pnpm@9.1.2",
39+
"packageManager": "pnpm@10.5.2",
4640
"engines": {
47-
"node": ">=18.0.0 <21",
48-
"pnpm": "^9.0.0"
41+
"node": "22.x",
42+
"pnpm": "^10.0.0"
4943
}
5044
}

0 commit comments

Comments
 (0)