Skip to content

[AI] Upgrade oxlint and switch type-aware linting to tsrs - #9626

Merged
MatissJanis merged 1 commit into
masterfrom
ai/oxlint-tsrs-backend
Nov 22, 2026
Merged

MatissJanis merged 1 commit into
masterfrom
ai/oxlint-tsrs-backend

Conversation

@MatissJanis

@MatissJanis MatissJanis commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

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

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I have read every line of this diff and can explain what each change does and why it is needed

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 37 15.11 MB → 15.11 MB (+928 B) +0.01%
loot-core 1 5.43 MB 0%
api 2 4.33 MB 0%
cli 1 420.19 kB 0%
crdt 1 11.15 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
37 15.11 MB → 15.11 MB (+928 B) +0.01%
Changeset
File Δ Size
src/components/budget/MonthCountSelector.tsx 📈 +801 B (+61.33%) 1.28 kB → 2.06 kB
src/components/autocomplete/PayeeAutocomplete.tsx 📈 +190 B (+0.80%) 23.07 kB → 23.26 kB
src/components/rules/RuleEditor.tsx 📉 -63 B (-0.13%) 47.74 kB → 47.67 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 2.94 MB → 2.94 MB (+801 B) +0.03%
static/js/Value.js 1.76 MB → 1.76 MB (+127 B) +0.01%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/AutomaticSyncSettings.js 21.95 kB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/DateSelect.js 2.65 MB 0%
static/js/FormulaEditor.js 771.38 kB 0%
static/js/NotesTagFormatter.js 30.87 kB 0%
static/js/ReportRouter.js 2.01 MB 0%
static/js/TourHost.js 169.78 kB 0%
static/js/TransactionList.js 87.15 kB 0%
static/js/bootstrapHyperFormula.js 302 B 0%
static/js/build-shims.js 140 B 0%
static/js/ca.js 161.65 kB 0%
static/js/columns.js 686.43 kB 0%
static/js/de.js 179.68 kB 0%
static/js/en-GB.js 13.59 kB 0%
static/js/en.js 292.41 kB 0%
static/js/es.js 181.74 kB 0%
static/js/fr.js 174.48 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 147.08 kB 0%
static/js/months.js 612.47 kB 0%
static/js/narrow.js 316.65 kB 0%
static/js/nb-NO.js 130.84 kB 0%
static/js/nl.js 142.79 kB 0%
static/js/pl.js 140.63 kB 0%
static/js/pt-BR.js 169.06 kB 0%
static/js/rolldown-runtime.js 2.03 kB 0%
static/js/ru.js 197.41 kB 0%
static/js/sv.js 308.36 kB 0%
static/js/theme.js 38.71 kB 0%
static/js/uk.js 237.6 kB 0%
static/js/useLocalPref.js 101.16 kB 0%
static/js/web.js 1 kB 0%
static/js/wide.js 304.34 kB 0%
static/js/workbox-window.prod.es5.js 7.21 kB 0%
static/js/zh-Hant.js 127.78 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.43 MB 0%
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

Asset File Size % Changed
kcab.worker.CKIlxGuB.js 5.43 MB 0%

api

Total

Files count Total bundle size % Changed
2 4.33 MB 0%
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

Asset File Size % Changed
index.js 4.33 MB 0%
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 420.19 kB 0%
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

Asset File Size % Changed
cli.js 420.19 kB 0%

crdt

Total

Files count Total bundle size % Changed
1 11.15 kB 0%
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

Asset File Size % Changed
index.js 11.15 kB 0%

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]>
@netlify

netlify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 9ee39fb
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget/deploys/6b02132465774af82a98efb4
😎 Deploy Preview https://deploy-preview-9626.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

Scorecard details
PackageVersionScoreDetails
npm/@oxlint/binding-android-arm-eabi 1.94.0 UnknownUnknown
npm/@oxlint/binding-android-arm64 1.94.0 UnknownUnknown
npm/@oxlint/binding-darwin-arm64 1.94.0 UnknownUnknown
npm/@oxlint/binding-darwin-x64 1.94.0 UnknownUnknown
npm/@oxlint/binding-freebsd-x64 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-arm-gnueabihf 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-arm-musleabihf 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-arm64-gnu 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-arm64-musl 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-ppc64-gnu 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-riscv64-gnu 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-riscv64-musl 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-s390x-gnu 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-x64-gnu 1.94.0 UnknownUnknown
npm/@oxlint/binding-linux-x64-musl 1.94.0 UnknownUnknown
npm/@oxlint/binding-openharmony-arm64 1.94.0 UnknownUnknown
npm/@oxlint/binding-win32-arm64-msvc 1.94.0 UnknownUnknown
npm/@oxlint/binding-win32-ia32-msvc 1.94.0 UnknownUnknown
npm/@oxlint/binding-win32-x64-msvc 1.94.0 UnknownUnknown
npm/@tsrs/darwin-arm64 UnknownUnknown
npm/@tsrs/darwin-x64 UnknownUnknown
npm/@tsrs/linux-arm64-gnu UnknownUnknown
npm/@tsrs/linux-arm64-musl UnknownUnknown
npm/@tsrs/linux-x64-gnu UnknownUnknown
npm/@tsrs/linux-x64-musl UnknownUnknown
npm/@tsrs/win32-arm64 UnknownUnknown
npm/@tsrs/win32-x64 UnknownUnknown
npm/oxlint 1.94.0 UnknownUnknown
npm/tsrs UnknownUnknown

Scanned Files

  • yarn.lock

@netlify

netlify Bot commented Nov 21, 2026

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget-website ready!

Name Link
🔨 Latest commit 9ee39fb
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget-website/deploys/6b021324209659fc768d4263
😎 Deploy Preview https://deploy-preview-9626.www.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@MatissJanis

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

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.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Note

.coderabbit.yaml has unrecognized properties

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"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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.

Changes: Type-aware lint tooling

Layer / File(s) Summary
Configure type-aware linting
package.json, knip.jsonc, upcoming-release-notes/switch-type-aware-linting-to-tsrs.md
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.

Rule editor split updates

Layer / File(s) Summary
Update split actions
packages/desktop-client/src/components/rules/RuleEditor.tsx
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.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Suggested reviewers: matt-fidd, jfdoming, joel-jeremy

Merge Risk: Minimal · up to 9ee39

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 39955a4 and 9ee39fb.

Files ignored due to path filters: 1

  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 6

  • knip.jsonc
  • package.json
  • packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.tsx
  • packages/desktop-client/src/components/budget/MonthCountSelector.tsx
  • packages/desktop-client/src/components/rules/RuleEditor.tsx
  • upcoming-release-notes/switch-type-aware-linting-to-tsrs.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@MatissJanis
MatissJanis marked this pull request as ready for review November 21, 2026 22:28
@matt-fidd

Copy link
Copy Markdown
Member

I like the switch to tsrs but is it worth holding off the oxlint upgrade until oxc-project/oxc#29892 is fixed?

MikesGlitch

This comment was marked as outdated.

@MatissJanis

Copy link
Copy Markdown
Member Author

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).

WDYT?

@matt-fidd matt-fidd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine by me! We just lose some react rules for a little bit

@MatissJanis
MatissJanis added this pull request to the merge queue Nov 22, 2026
Merged via the queue into master with commit fe63755 Nov 22, 2026
59 checks passed
@MatissJanis
MatissJanis deleted the ai/oxlint-tsrs-backend branch November 22, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants