You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[AI] Upgrade oxlint and switch type-aware linting to tsrs - #9626
Bump oxlint to 1.94 and replace oxlint-tsgolint with tsrs as the type-aware backend. Diagnostics are unchanged versus tsgolint; peak lint memory drops from about 3.0 GB to 1.4 GB.
Fix the three react/immutability errors the newer oxlint reports in RuleEditor, PayeeAutocomplete and MonthCountSelector.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.
Parsing warnings: 1
Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks.docstrings"
If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
No actionable comments were generated in the recent review.
Walkthrough
The changes switch type-aware linting to tsrs and update three desktop components: payee highlighting indexes, month calendar generation, and rule split action updates.
The root dependencies update oxlint and replace oxlint-tsgolint with tsrs. Knip ignores tsrs. The release note describes the switch and states a 50% reduction in lint memory usage.
Payee autocomplete indexing
Layer / File(s)
Summary
Assign indexes by group packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx
PayeeList replaces its shared index counter with group offsets. The new-payee item keeps index 0.
Month count selector
Layer / File(s)
Summary
Generate calendar elements packages/desktop-client/src/components/budget/MonthCountSelector.tsx
Calendar elements are generated with Array.from over displayMax. Their month-count keys, colors, and onChange values remain based on the same month counts.
addActionToSplitAfterIndex uses a local split and copied objects when it adds an action. It creates a fresh split when a nonzero split index has no actions.
This PR changes the type-aware lint backend and makes three small refactors in desktop components that keep the same behavior. No concrete defect was found, so the merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the two primary changes: upgrading oxlint and switching type-aware linting to tsrs. The raw summary confirms both changes in package.json, knip.jsonc, and the release note. The title i…
Description check
The description states the purpose: upgrade oxlint and move to tsrs for a smaller memory footprint. It also links the related oxc blog post and lists the release notes and CI expectations. This matche…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the two primary changes: upgrading oxlint and switching type-aware linting to tsrs. The raw summary confirms both changes in package.json, knip.jsonc, and the release note. The title is specific and matches the main change. The [AI] prefix is a minor noise item and does not affect the assessment.
Full details: Description check
Explanation
The description states the purpose: upgrade oxlint and move to tsrs for a smaller memory footprint. It also links the related oxc blog post and lists the release notes and CI expectations. This matches the changeset, which updates oxlint and tsrs in package.json and knip.jsonc and adds a release note. The description is related to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
I like the switch to tsrs but is it worth holding off the oxlint upgrade until oxc-project/oxc#29892 is fixed?
The next time we upgrade we'll also pull in this fix. Which means we'll need to do a wide-sweeping import reorder. So I would actually prefer to do this in two PRs (this one now and then the next upgrade with the next two fixes in oxlint).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrade oxlint + move to tsrs (which has smaller memory footprint).
Related: https://oxc.rs/blog/2026-11-17-faster-type-aware-linting-with-tsrs.html
Related issue(s)
n/a
Testing
CI should pass
Checklist
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/components/budget/MonthCountSelector.tsxsrc/components/autocomplete/PayeeAutocomplete.tsxsrc/components/rules/RuleEditor.tsxView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
No assets were smaller
Unchanged
loot-core
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
api
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
cli
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
crdt
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged