Repository navigation
chore: Set up Biome for linting and formatting. - #9
Conversation
📝 WalkthroughWalkthroughAdds Biome as the project's formatter and linter (new biome.json, @biomejs/biome in devDependencies, updated package.json scripts and lint-staged), removes Prettier config and many .prettierignore entries, updates CONTRIBUTING.md to reference Biome and editor integrations, and updates CI (.github/workflows/ci.yml) to add a new "Lint" job (checks out code, sets up pnpm/Node from .nvmrc, installs deps, runs pnpm run lint). Also renames two CI step labels (“Run spell check” → “Run the spell check”, “Run formatter” → “Run the formatter”). Sequence Diagram(s)sequenceDiagram
participant Dev as Developer (local)
participant Git as Git / pre-commit
participant LintStaged as lint-staged
participant Biome as Biome (local)
participant CI as CI runner
Note over Dev,Git: Local commit-time flow (changed)
Dev->>Git: Commit
Git->>LintStaged: pre-commit hook triggers
LintStaged->>Biome: pnpm exec biome format --write (matched files)
LintStaged->>Biome: (optionally) pnpm run lint:fix
Note over CI: Remote CI lint job (new)
CI->>CI: Checkout & setup Node (.nvmrc) + pnpm
CI->>CI: pnpm install
CI->>Biome: pnpm run lint
CI-->>CI: Lint job success / failure
sequenceDiagram
participant Old as Old flow (Prettier)
participant New as New flow (Biome)
participant Maintainer as Maintainer
Note over Old,New: Tooling replacement (conceptual)
Maintainer->>Old: pnpm format / format:check (prettier)
Old--xMaintainer: removed
Maintainer->>New: pnpm format / format:check (biome)
New-->>Maintainer: formatted / check result
Possibly related PRs
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (2)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-09-25T14:43:13.976ZApplied to files:
📚 Learning: 2025-09-03T12:53:28.421ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
📚 Learning: 2025-09-03T12:53:28.421ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
📚 Learning: 2025-09-03T13:01:49.096ZApplied to files:
🔇 Additional comments (4)
Comment |
69ea4b1 to
7138b88
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
.github/workflows/ci.yml(2 hunks).prettierignore(1 hunks).prettierrc(1 hunks)CONTRIBUTING.md(2 hunks)biome.json(1 hunks)package.json(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format` to check code style
Applied to files:
.github/workflows/ci.ymlCONTRIBUTING.md
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format-fix` to auto-fix formatting issues
Applied to files:
.github/workflows/ci.yml
📚 Learning: 2025-09-25T14:43:13.976Z
Learnt from: FilipPyrek
PR: deepnote/deepnote#18531
File: biome.json:58-58
Timestamp: 2025-09-25T14:43:13.976Z
Learning: Biome is a JavaScript/TypeScript linter and formatter that doesn't process .proto files, so Protocol Buffer source files don't need to be explicitly ignored in biome.json configuration.
Applied to files:
CONTRIBUTING.mdbiome.json
📚 Learning: 2025-09-03T12:53:28.421Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-03T12:53:28.421Z
Learning: Use lint/format tools as part of development
Applied to files:
CONTRIBUTING.md
7138b88 to
f8af5f0
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
.github/workflows/ci.yml(2 hunks).prettierignore(0 hunks).prettierrc(0 hunks)CONTRIBUTING.md(2 hunks)biome.json(1 hunks)package.json(1 hunks)
💤 Files with no reviewable changes (2)
- .prettierrc
- .prettierignore
🧰 Additional context used
🧠 Learnings (5)
📓 Common learnings
Learnt from: FilipPyrek
PR: deepnote/deepnote#18531
File: biome.json:58-58
Timestamp: 2025-09-25T14:43:13.976Z
Learning: Biome is a JavaScript/TypeScript linter and formatter that doesn't process .proto files, so Protocol Buffer source files don't need to be explicitly ignored in biome.json configuration.
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format` to check code style
Applied to files:
.github/workflows/ci.ymlCONTRIBUTING.md
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format-fix` to auto-fix formatting issues
Applied to files:
.github/workflows/ci.yml
📚 Learning: 2025-09-25T14:43:13.976Z
Learnt from: FilipPyrek
PR: deepnote/deepnote#18531
File: biome.json:58-58
Timestamp: 2025-09-25T14:43:13.976Z
Learning: Biome is a JavaScript/TypeScript linter and formatter that doesn't process .proto files, so Protocol Buffer source files don't need to be explicitly ignored in biome.json configuration.
Applied to files:
biome.jsonCONTRIBUTING.md
📚 Learning: 2025-09-03T12:53:28.421Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-03T12:53:28.421Z
Learning: Use lint/format tools as part of development
Applied to files:
CONTRIBUTING.md
f8af5f0 to
55667f3
Compare
Replaces Prettier with Biome, which we can use for both formatting and linting.
Fixes #8
Summary by CodeRabbit