Repository navigation
chore: add additional Biome rules from deepnote-internal config - #49
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
|
Warning Rate limit exceeded@jamesbhobbs has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 3 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR expands the Biome linting configuration by adding numerous lint rules across multiple categories. New rules are introduced in complexity (noCommaOperator, noStaticOnlyClass, noUselessConstructor, noUselessEmptyExport, noUselessThisAlias, useOptionalChain), correctness, performance/style, and suspicious blocks. Additionally, a new nursery block is created containing experimental rules like noFloatingPromises and noMisusedPromises. The configuration updates TypeScript and JavaScript code quality enforcement standards. Possibly related PRs
Suggested reviewers
Pre-merge checks✅ Passed checks (3 passed)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
=======================================
Coverage 92.91% 92.91%
=======================================
Files 24 24
Lines 776 776
Branches 222 222
=======================================
Hits 721 721
Misses 55 55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
biome.json(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: CR
PR: deepnote/deepnote#0
File: CLAUDE.md:0-0
Timestamp: 2025-10-14T13:43:36.364Z
Learning: Applies to **/*.{ts,tsx} : Follow Biome's lint rules as configured in biome.json
🪛 GitHub Actions: CI
biome.json
[error] 94-94: Spell-check failed: Unknown word 'Instantiator' detected by cspell in biome.json. Please fix or add to dictionary.
🔇 Additional comments (5)
biome.json (5)
101-106: Verify that nursery rules are suitable for production enforcement.The new
nurserysection introduces experimental Biome rules (noFloatingPromises, noMisusedPromises, noNonNullAssertedOptionalChain, useConsistentTypeDefinitions). These are typically less stable than stable rules. Confirm that your codebase is ready for these experimental rules and that they align with your team's standards, especially given their potential for false positives in async/promise handling code.
70-75: Confirm useConsistentMemberAccessibility option is applied correctly.The
useConsistentMemberAccessibilityrule uses the"noPublic"accessibility option, which enforces that public access modifiers are omitted (TypeScript convention). Verify this matches your codebase and team conventions before merge.
26-50: Well-organized rule additions across complexity, correctness, and performance.The 22 new rules in these sections are well-structured and consistent with existing patterns. All are set to "error" level and align with the PR objectives. Assuming all existing code passes these rules (as noted in the PR description), these changes improve code quality without breaking changes.
52-80: Style rules expanded consistently.The 8 new style rules (including the noNamespace, useExportType, and useLiteralEnumMembers additions) maintain consistency with the configuration pattern. The useConsistentMemberAccessibility object structure with options is properly formatted.
81-100: Suspicious rules comprehensively expanded.The 13 new suspicious rules (from noConfusingVoidType through useNamespaceKeyword) are well-integrated into the existing category. All maintain the "error" severity level established for this section.
chore: add additional Biome rules from deepnote-internal config
Summary
This PR synchronizes Biome linting rules from the deepnote-internal repository to the deepnote repository by adding explicitly-enabled rules that were missing. The changes add 39 explicit rule configurations across 5 categories:
Additionally, added "Instantiator" to the spell check dictionary to fix the CI spell check failure.
All existing code passes the new rules (verified via
pnpm lintAndFormat,pnpm typecheck, andpnpm testlocally, plus all CI checks).Review & Testing Checklist for Human
"recommended": true, some of these rules might already be enabled by default. Verify whether explicit listing is preferred or if we should only list non-recommended rules."accessibility": "noPublic"- confirm this matches team preferences for TypeScript class member visibility.Notes
Session: https://app.devin.ai/sessions/b81828a0d5a54dbf8956a5131fbb0b06
Requested by: James Hobbs (@jamesbhobbs)