Skip to content

Commit a92cf14

Browse files
authored
chore: migrate from biome to oxc (#688)
1 parent 8af4d98 commit a92cf14

46 files changed

Lines changed: 5332 additions & 5371 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ test-results/
4949

5050
site/
5151

52-
biome-main/
5352
.review/
5453
pglinter_repo/
5554
.review/

.oxfmtrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": false,
3+
"experimentalSortImports": {}
4+
}

.oxlintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {
4+
"correctness": "error",
5+
"suspicious": "warn"
6+
},
7+
"rules": {
8+
"no-shadow": "off",
9+
"unicorn/require-post-message-target-origin": "off",
10+
"unicorn/prefer-add-event-listener": "off"
11+
},
12+
"overrides": [
13+
{
14+
"files": ["**/e2e/**", "**/tests/**"],
15+
"rules": {
16+
"typescript/no-explicit-any": "off"
17+
}
18+
}
19+
]
20+
}

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ just format
4040

4141
# Lint entire codebase
4242
just lint
43-
# or: cargo clippy && cargo run -p rules_check && bun biome lint
43+
# or: cargo clippy && cargo run -p rules_check && bun oxlint packages/
4444

4545
# Fix linting issues
4646
just lint-fix
@@ -137,7 +137,7 @@ cargo insta review
137137
- `clippy.toml` - Clippy linting configuration
138138

139139
### Other Tools
140-
- `biome.jsonc` - Biome formatter/linter configuration for JS/TS
140+
- `.oxlintrc.json` / `.oxfmtrc.json` - oxlint linter and oxfmt formatter configuration for JS/TS
141141
- `taplo.toml` - TOML formatting configuration
142142
- `justfile` - Task runner with all development commands
143143
- `docker-compose.yml` - Database setup for testing

biome.jsonc

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

bun.lock

Lines changed: 75 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

justfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ new-lintrule group rulename severity="error":
4343
format:
4444
cargo fmt
4545
taplo format
46-
bun biome format --write
46+
bun oxfmt packages/
4747

4848
format-ci:
4949
cargo fmt --all --check
5050
taplo format --check
51-
bun biome format
51+
bun oxfmt --check packages/
5252

5353
format-ci-versions:
5454
cargo --version
5555
taplo --version
56-
echo "Biome $(bun biome --version)"
56+
bun oxfmt --version
5757

5858
[unix]
5959
_touch file:
@@ -79,26 +79,26 @@ test-doc:
7979
lint:
8080
cargo clippy
8181
cargo run -p rules_check
82-
bun biome lint
82+
bun oxlint packages/
8383

8484
lint-fix:
8585
cargo clippy --fix
8686
cargo run -p rules_check
87-
bun biome lint --write
87+
bun oxlint --fix packages/
8888

8989
lint-ci-versions:
9090
rustc --version
9191
rustup --version
9292
cargo --version
9393
cargo sqlx --version
9494
cargo clippy --version
95-
echo "Biome $(bun biome --version)"
95+
bun oxlint --version
9696

9797
lint-ci:
9898
cargo sqlx prepare --check --workspace
9999
cargo clippy --fix
100100
cargo run -p rules_check
101-
bun biome lint --write
101+
bun oxlint --fix packages/
102102

103103
serve-docs:
104104
uv sync

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@biomejs/biome": "1.9.4",
6+
"oxlint": "1.49.0",
7+
"oxfmt": "0.34.0",
78
"@types/bun": "latest"
89
},
910
"peerDependencies": {
Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
{
2-
"name": "@postgres-language-server/backend-jsonrpc",
3-
"version": "<placeholder>",
4-
"main": "dist/index.js",
5-
"scripts": {
6-
"test": "bun test",
7-
"test:ci": "bun build && bun test",
8-
"build": "bun build ./src/index.ts --outdir ./dist --target node"
9-
},
10-
"files": ["dist/", "README.md"],
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/supabase-community/postgres-language-server.git",
14-
"directory": "packages/@postgres-language-server/backend-jsonrpc"
15-
},
16-
"author": "Supabase Community",
17-
"bugs": "ttps://github.com/supabase-community/postgres-language-server/issues",
18-
"description": "Bindings to the JSON-RPC Workspace API of the Postgres Language Tools daemon",
19-
"keywords": ["TypeScript", "Postgres"],
20-
"license": "MIT",
21-
"publishConfig": {
22-
"provenance": true
23-
},
24-
"optionalDependencies": {
25-
"@postgres-language-server/cli-win32-x64": "<placeholder>",
26-
"@postgres-language-server/cli-win32-arm64": "<placeholder>",
27-
"@postgres-language-server/cli-darwin-x64": "<placeholder>",
28-
"@postgres-language-server/cli-darwin-arm64": "<placeholder>",
29-
"@postgres-language-server/cli-linux-x64": "<placeholder>",
30-
"@postgres-language-server/cli-linux-arm64": "<placeholder>"
31-
}
2+
"name": "@postgres-language-server/backend-jsonrpc",
3+
"version": "<placeholder>",
4+
"description": "Bindings to the JSON-RPC Workspace API of the Postgres Language Tools daemon",
5+
"keywords": [
6+
"Postgres",
7+
"TypeScript"
8+
],
9+
"bugs": "ttps://github.com/supabase-community/postgres-language-server/issues",
10+
"license": "MIT",
11+
"author": "Supabase Community",
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/supabase-community/postgres-language-server.git",
15+
"directory": "packages/@postgres-language-server/backend-jsonrpc"
16+
},
17+
"files": [
18+
"dist/",
19+
"README.md"
20+
],
21+
"main": "dist/index.js",
22+
"publishConfig": {
23+
"provenance": true
24+
},
25+
"scripts": {
26+
"test": "bun test",
27+
"test:ci": "bun build && bun test",
28+
"build": "bun build ./src/index.ts --outdir ./dist --target node"
29+
},
30+
"optionalDependencies": {
31+
"@postgres-language-server/cli-darwin-arm64": "<placeholder>",
32+
"@postgres-language-server/cli-darwin-x64": "<placeholder>",
33+
"@postgres-language-server/cli-linux-arm64": "<placeholder>",
34+
"@postgres-language-server/cli-linux-x64": "<placeholder>",
35+
"@postgres-language-server/cli-win32-arm64": "<placeholder>",
36+
"@postgres-language-server/cli-win32-x64": "<placeholder>"
37+
}
3238
}

0 commit comments

Comments
 (0)