[PR #7181] [MERGED] Enable restrict-template-expressions linting rule #32914

Closed
opened 2026-04-18 08:52:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7181
Author: @MatissJanis
Created: 3/12/2026
Status: Merged
Merged: 3/13/2026
Merged by: @MatissJanis

Base: masterHead: claude/restrict-template-expressions-error-FMmD3


📝 Commits (2)

  • 8be7cdd [AI] Promote typescript/restrict-template-expressions to error and fix violations
  • 82393fa Add release notes for PR #7181

📊 Changes

34 files changed (+61 additions, -42 deletions)

View changed files

📝 .oxlintrc.json (+1 -1)
📝 packages/desktop-client/e2e/page-models/configuration-page.ts (+1 -1)
📝 packages/desktop-client/e2e/page-models/custom-report-page.ts (+1 -1)
📝 packages/desktop-client/src/budget/mutations.ts (+1 -1)
📝 packages/desktop-client/src/components/HelpMenu.tsx (+1 -1)
📝 packages/desktop-client/src/components/budget/envelope/IncomeMenu.tsx (+1 -1)
📝 packages/desktop-client/src/components/budget/goals/reducer.ts (+7 -3)
📝 packages/desktop-client/src/components/budget/tracking/BalanceMenu.tsx (+1 -1)
📝 packages/desktop-client/src/components/mobile/transactions/TransactionList.tsx (+4 -4)
📝 packages/desktop-client/src/components/modals/AccountMenuModal.tsx (+1 -1)
📝 packages/desktop-client/src/components/modals/EnvelopeIncomeBalanceMenuModal.tsx (+1 -1)
📝 packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx (+1 -1)
📝 packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.tsx (+1 -1)
📝 packages/desktop-client/src/components/payees/PayeeTableRow.tsx (+1 -1)
📝 packages/desktop-client/src/components/reports/Overview.tsx (+1 -1)
📝 packages/desktop-client/src/components/rules/RuleRow.tsx (+1 -1)
📝 packages/desktop-client/src/components/rules/Value.tsx (+1 -1)
📝 packages/desktop-client/src/components/schedules/index.tsx (+1 -1)
📝 packages/desktop-client/src/components/sidebar/Account.tsx (+3 -1)
📝 packages/desktop-client/src/components/tags/TagRow.tsx (+1 -1)

...and 14 more files

📄 Description

Description

Enabled restrict-template-expressions rule and fixed the lint violations

N/A

Testing

N/A

Checklist

  • Release notes added
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

https://claude.ai/code/session_01Uk8SwFbD6HuUuo3SSMwU9z


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 27 14.92 MB → 14.92 MB (+216 B) +0.00%
loot-core 1 5.83 MB → 5.83 MB (+56 B) +0.00%
api 3 4.82 MB → 4.82 MB (+56 B) +0.00%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.92 MB → 14.92 MB (+216 B) +0.00%
Changeset
File Δ Size
src/components/modals/ImportTransactionsModal/SelectField.tsx 📈 +8 B (+1.62%) 493 B → 501 B
home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts 📈 +8 B (+0.95%) 846 B → 854 B
src/components/budget/tracking/BalanceMenu.tsx 📈 +8 B (+0.48%) 1.63 kB → 1.64 kB
src/components/budget/goals/reducer.ts 📈 +24 B (+0.44%) 5.38 kB → 5.41 kB
src/components/budget/envelope/IncomeMenu.tsx 📈 +8 B (+0.34%) 2.31 kB → 2.31 kB
src/components/modals/EnvelopeIncomeBalanceMenuModal.tsx 📈 +8 B (+0.22%) 3.58 kB → 3.59 kB
src/components/mobile/transactions/TransactionList.tsx 📈 +40 B (+0.20%) 19.55 kB → 19.59 kB
src/components/rules/Value.tsx 📈 +8 B (+0.16%) 5.04 kB → 5.05 kB
home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts 📈 +8 B (+0.15%) 5.31 kB → 5.32 kB
src/components/HelpMenu.tsx 📈 +8 B (+0.13%) 5.95 kB → 5.96 kB
src/hooks/useTransactionBatchActions.ts 📈 +16 B (+0.12%) 12.87 kB → 12.89 kB
src/components/schedules/index.tsx 📈 +8 B (+0.11%) 7.09 kB → 7.09 kB
src/components/tags/TagRow.tsx 📈 +8 B (+0.09%) 8.89 kB → 8.89 kB
src/components/modals/AccountMenuModal.tsx 📈 +8 B (+0.08%) 10.35 kB → 10.36 kB
src/components/rules/RuleRow.tsx 📈 +8 B (+0.07%) 10.83 kB → 10.84 kB
src/components/sidebar/Account.tsx 📈 +8 B (+0.06%) 13.37 kB → 13.38 kB
src/components/payees/PayeeTableRow.tsx 📈 +8 B (+0.06%) 13.68 kB → 13.68 kB
src/budget/mutations.ts 📈 +8 B (+0.04%) 20.76 kB → 20.77 kB
src/components/reports/Overview.tsx 📈 +8 B (+0.03%) 26.88 kB → 26.89 kB
src/components/modals/SelectLinkedAccountsModal.tsx 📈 +8 B (+0.02%) 43.21 kB → 43.22 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 9.57 MB → 9.57 MB (+144 B) +0.00%
static/js/TransactionList.js 106.48 kB → 106.52 kB (+40 B) +0.04%
static/js/useTransactionBatchActions.js 13.23 kB → 13.24 kB (+16 B) +0.12%
static/js/ReportRouter.js 1.16 MB → 1.16 MB (+8 B) +0.00%
static/js/wide.js 164.15 kB → 164.16 kB (+8 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/ca.js 187.85 kB 0%
static/js/da.js 106.13 kB 0%
static/js/de.js 179.82 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 171.21 kB 0%
static/js/es.js 174.29 kB 0%
static/js/fr.js 179.34 kB 0%
static/js/it.js 170.91 kB 0%
static/js/nb-NO.js 156.74 kB 0%
static/js/nl.js 113.03 kB 0%
static/js/pl.js 89.61 kB 0%
static/js/pt-BR.js 182.82 kB 0%
static/js/th.js 181.54 kB 0%
static/js/uk.js 215.25 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/narrow.js 638.11 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 11.57 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.83 MB → 5.83 MB (+56 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts 📈 +8 B (+0.85%) 946 B → 954 B
home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts 📈 +8 B (+0.26%) 3.01 kB → 3.02 kB
home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts 📈 +8 B (+0.08%) 9.51 kB → 9.52 kB
home/runner/work/actual/actual/packages/loot-core/src/server/aql/compiler.ts 📈 +16 B (+0.05%) 30.87 kB → 30.88 kB
home/runner/work/actual/actual/packages/loot-core/src/server/budget/category-template-context.ts 📈 +8 B (+0.03%) 23.52 kB → 23.53 kB
home/runner/work/actual/actual/packages/loot-core/src/server/api.ts 📈 +8 B (+0.03%) 26.83 kB → 26.84 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.C74NG-KA.js 0 B → 5.83 MB (+5.83 MB) -

Removed

Asset File Size % Changed
kcab.worker.BXPdB7lm.js 5.83 MB → 0 B (-5.83 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
3 4.82 MB → 4.82 MB (+56 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts 📈 +8 B (+0.99%) 806 B → 814 B
home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts 📈 +8 B (+0.28%) 2.74 kB → 2.75 kB
home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts 📈 +8 B (+0.09%) 8.51 kB → 8.52 kB
home/runner/work/actual/actual/packages/loot-core/src/server/aql/compiler.ts 📈 +16 B (+0.06%) 27.33 kB → 27.35 kB
home/runner/work/actual/actual/packages/loot-core/src/server/budget/category-template-context.ts 📈 +8 B (+0.04%) 21.05 kB → 21.06 kB
home/runner/work/actual/actual/packages/loot-core/src/server/api.ts 📈 +8 B (+0.03%) 23.81 kB → 23.82 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
index.js 4.53 MB → 4.53 MB (+56 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index-BKGP2w5F.js 285.56 kB 0%
multipart-parser-DwddZ4BH.js 9.33 kB 0%

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/7181 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `claude/restrict-template-expressions-error-FMmD3` --- ### 📝 Commits (2) - [`8be7cdd`](https://github.com/actualbudget/actual/commit/8be7cdd7272df4599472ea0d1bb4c5e9e0670f12) [AI] Promote typescript/restrict-template-expressions to error and fix violations - [`82393fa`](https://github.com/actualbudget/actual/commit/82393fa717ab41801568022f6e75cab6b1dd9016) Add release notes for PR #7181 ### 📊 Changes **34 files changed** (+61 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `.oxlintrc.json` (+1 -1) 📝 `packages/desktop-client/e2e/page-models/configuration-page.ts` (+1 -1) 📝 `packages/desktop-client/e2e/page-models/custom-report-page.ts` (+1 -1) 📝 `packages/desktop-client/src/budget/mutations.ts` (+1 -1) 📝 `packages/desktop-client/src/components/HelpMenu.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/budget/envelope/IncomeMenu.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/budget/goals/reducer.ts` (+7 -3) 📝 `packages/desktop-client/src/components/budget/tracking/BalanceMenu.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/mobile/transactions/TransactionList.tsx` (+4 -4) 📝 `packages/desktop-client/src/components/modals/AccountMenuModal.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/modals/EnvelopeIncomeBalanceMenuModal.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/modals/ImportTransactionsModal/SelectField.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/payees/PayeeTableRow.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/reports/Overview.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/rules/RuleRow.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/rules/Value.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/schedules/index.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/sidebar/Account.tsx` (+3 -1) 📝 `packages/desktop-client/src/components/tags/TagRow.tsx` (+1 -1) _...and 14 more files_ </details> ### 📄 Description ## Description Enabled `restrict-template-expressions` rule and fixed the lint violations ## Related issue(s) N/A ## Testing N/A ## Checklist - [x] Release notes added - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed https://claude.ai/code/session_01Uk8SwFbD6HuUuo3SSMwU9z <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 27 | 14.92 MB → 14.92 MB (+216 B) | +0.00% loot-core | 1 | 5.83 MB → 5.83 MB (+56 B) | +0.00% api | 3 | 4.82 MB → 4.82 MB (+56 B) | +0.00% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.92 MB → 14.92 MB (+216 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/modals/ImportTransactionsModal/SelectField.tsx` | 📈 +8 B (+1.62%) | 493 B → 501 B `home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts` | 📈 +8 B (+0.95%) | 846 B → 854 B `src/components/budget/tracking/BalanceMenu.tsx` | 📈 +8 B (+0.48%) | 1.63 kB → 1.64 kB `src/components/budget/goals/reducer.ts` | 📈 +24 B (+0.44%) | 5.38 kB → 5.41 kB `src/components/budget/envelope/IncomeMenu.tsx` | 📈 +8 B (+0.34%) | 2.31 kB → 2.31 kB `src/components/modals/EnvelopeIncomeBalanceMenuModal.tsx` | 📈 +8 B (+0.22%) | 3.58 kB → 3.59 kB `src/components/mobile/transactions/TransactionList.tsx` | 📈 +40 B (+0.20%) | 19.55 kB → 19.59 kB `src/components/rules/Value.tsx` | 📈 +8 B (+0.16%) | 5.04 kB → 5.05 kB `home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts` | 📈 +8 B (+0.15%) | 5.31 kB → 5.32 kB `src/components/HelpMenu.tsx` | 📈 +8 B (+0.13%) | 5.95 kB → 5.96 kB `src/hooks/useTransactionBatchActions.ts` | 📈 +16 B (+0.12%) | 12.87 kB → 12.89 kB `src/components/schedules/index.tsx` | 📈 +8 B (+0.11%) | 7.09 kB → 7.09 kB `src/components/tags/TagRow.tsx` | 📈 +8 B (+0.09%) | 8.89 kB → 8.89 kB `src/components/modals/AccountMenuModal.tsx` | 📈 +8 B (+0.08%) | 10.35 kB → 10.36 kB `src/components/rules/RuleRow.tsx` | 📈 +8 B (+0.07%) | 10.83 kB → 10.84 kB `src/components/sidebar/Account.tsx` | 📈 +8 B (+0.06%) | 13.37 kB → 13.38 kB `src/components/payees/PayeeTableRow.tsx` | 📈 +8 B (+0.06%) | 13.68 kB → 13.68 kB `src/budget/mutations.ts` | 📈 +8 B (+0.04%) | 20.76 kB → 20.77 kB `src/components/reports/Overview.tsx` | 📈 +8 B (+0.03%) | 26.88 kB → 26.89 kB `src/components/modals/SelectLinkedAccountsModal.tsx` | 📈 +8 B (+0.02%) | 43.21 kB → 43.22 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.57 MB → 9.57 MB (+144 B) | +0.00% static/js/TransactionList.js | 106.48 kB → 106.52 kB (+40 B) | +0.04% static/js/useTransactionBatchActions.js | 13.23 kB → 13.24 kB (+16 B) | +0.12% static/js/ReportRouter.js | 1.16 MB → 1.16 MB (+8 B) | +0.00% static/js/wide.js | 164.15 kB → 164.16 kB (+8 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/ca.js | 187.85 kB | 0% static/js/da.js | 106.13 kB | 0% static/js/de.js | 179.82 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 171.21 kB | 0% static/js/es.js | 174.29 kB | 0% static/js/fr.js | 179.34 kB | 0% static/js/it.js | 170.91 kB | 0% static/js/nb-NO.js | 156.74 kB | 0% static/js/nl.js | 113.03 kB | 0% static/js/pl.js | 89.61 kB | 0% static/js/pt-BR.js | 182.82 kB | 0% static/js/th.js | 181.54 kB | 0% static/js/uk.js | 215.25 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/narrow.js | 638.11 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 11.57 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.83 MB → 5.83 MB (+56 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts` | 📈 +8 B (+0.85%) | 946 B → 954 B `home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts` | 📈 +8 B (+0.26%) | 3.01 kB → 3.02 kB `home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts` | 📈 +8 B (+0.08%) | 9.51 kB → 9.52 kB `home/runner/work/actual/actual/packages/loot-core/src/server/aql/compiler.ts` | 📈 +16 B (+0.05%) | 30.87 kB → 30.88 kB `home/runner/work/actual/actual/packages/loot-core/src/server/budget/category-template-context.ts` | 📈 +8 B (+0.03%) | 23.52 kB → 23.53 kB `home/runner/work/actual/actual/packages/loot-core/src/server/api.ts` | 📈 +8 B (+0.03%) | 26.83 kB → 26.84 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.C74NG-KA.js | 0 B → 5.83 MB (+5.83 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BXPdB7lm.js | 5.83 MB → 0 B (-5.83 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 3 | 4.82 MB → 4.82 MB (+56 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/util/custom-sync-mapping.ts` | 📈 +8 B (+0.99%) | 806 B → 814 B `home/runner/work/actual/actual/packages/loot-core/src/shared/errors.ts` | 📈 +8 B (+0.28%) | 2.74 kB → 2.75 kB `home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts` | 📈 +8 B (+0.09%) | 8.51 kB → 8.52 kB `home/runner/work/actual/actual/packages/loot-core/src/server/aql/compiler.ts` | 📈 +16 B (+0.06%) | 27.33 kB → 27.35 kB `home/runner/work/actual/actual/packages/loot-core/src/server/budget/category-template-context.ts` | 📈 +8 B (+0.04%) | 21.05 kB → 21.06 kB `home/runner/work/actual/actual/packages/loot-core/src/server/api.ts` | 📈 +8 B (+0.03%) | 23.81 kB → 23.82 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- index.js | 4.53 MB → 4.53 MB (+56 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- index-BKGP2w5F.js | 285.56 kB | 0% multipart-parser-DwddZ4BH.js | 9.33 kB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 08:52:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#32914