Skip to content

Commit

Permalink
enforce biome
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsverre committed Jan 6, 2024
1 parent dbf37dc commit 220bffc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
15 changes: 1 addition & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,7 @@
// this allows rust-analyzer to compile sqlsync_reducer::host_ffi
"rust-analyzer.cargo.features": ["host"],
"rust-analyzer.showUnlinkedFileNotification": false,
"[typescriptreact][typescript][javascript][javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "never",
"quickfix.biome": "always",
"source.addMissingImports": "always",
"source.formatDocument": "always",
"source.organizeImports": "always"
},
"editor.tabSize": 2,
"editor.insertSpaces": true
},
"[json][jsonc]": {
"[typescriptreact][typescript][javascript][javascriptreact][json][jsonc]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.tabSize": 2,
"editor.insertSpaces": true
Expand Down
5 changes: 5 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"organizeImports": {
"enabled": false
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": {
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default:
lint:
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --check
pnpm exec biome check .

unit-test:
cargo test
Expand Down
1 change: 0 additions & 1 deletion lib/sqlsync-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { SQLSyncProvider } from "./context";
export { createDocHooks, useConnectionStatus } from "./hooks";

5 changes: 2 additions & 3 deletions lib/sqlsync-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export {
journalIdFromString,
journalIdToString,
randomJournalId,
randomJournalId256
randomJournalId256,
} from "./journal-id";
export { normalizeQuery, sql } from "./sql";
export { SQLSync } from "./sqlsync";
Expand Down Expand Up @@ -30,6 +30,5 @@ export type {
ParameterizedQuery,
QuerySubscription,
Row,
SqlValue
SqlValue,
};

0 comments on commit 220bffc

Please sign in to comment.