Skip to content

Commit 220bffc

Browse files
committed
enforce biome
1 parent dbf37dc commit 220bffc

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

.vscode/settings.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,7 @@
55
// this allows rust-analyzer to compile sqlsync_reducer::host_ffi
66
"rust-analyzer.cargo.features": ["host"],
77
"rust-analyzer.showUnlinkedFileNotification": false,
8-
"[typescriptreact][typescript][javascript][javascriptreact]": {
9-
"editor.defaultFormatter": "biomejs.biome",
10-
"editor.formatOnSave": false,
11-
"editor.codeActionsOnSave": {
12-
"source.fixAll.eslint": "never",
13-
"quickfix.biome": "always",
14-
"source.addMissingImports": "always",
15-
"source.formatDocument": "always",
16-
"source.organizeImports": "always"
17-
},
18-
"editor.tabSize": 2,
19-
"editor.insertSpaces": true
20-
},
21-
"[json][jsonc]": {
8+
"[typescriptreact][typescript][javascript][javascriptreact][json][jsonc]": {
229
"editor.defaultFormatter": "biomejs.biome",
2310
"editor.tabSize": 2,
2411
"editor.insertSpaces": true

biome.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"organizeImports": {
44
"enabled": false
55
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"useIgnoreFile": true
10+
},
611
"linter": {
712
"enabled": true,
813
"rules": {

justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ default:
66
lint:
77
cargo clippy --all-targets --all-features -- -D warnings
88
cargo fmt --check
9+
pnpm exec biome check .
910

1011
unit-test:
1112
cargo test

lib/sqlsync-react/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { SQLSyncProvider } from "./context";
22
export { createDocHooks, useConnectionStatus } from "./hooks";
3-

lib/sqlsync-worker/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export {
22
journalIdFromString,
33
journalIdToString,
44
randomJournalId,
5-
randomJournalId256
5+
randomJournalId256,
66
} from "./journal-id";
77
export { normalizeQuery, sql } from "./sql";
88
export { SQLSync } from "./sqlsync";
@@ -30,6 +30,5 @@ export type {
3030
ParameterizedQuery,
3131
QuerySubscription,
3232
Row,
33-
SqlValue
33+
SqlValue,
3434
};
35-

0 commit comments

Comments
 (0)