[PR #7467] [AI] Add enforce-boundaries ESLint rule for architectural boundaries #33111

Open
opened 2026-04-18 09:02:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7467
Author: @MatissJanis
Created: 4/11/2026
Status: 🔄 Open

Base: masterHead: claude/eslint-architectural-boundaries-kipTg


📝 Commits (10+)

  • ec73e27 [AI] Add enforce-boundaries ESLint rule for architectural boundaries
  • b32a1e9 [AI] Fix enforce-boundaries lint violations
  • 7eb7043 [AI] Clean up enforce-boundaries rule: remove redundant comments, optimize Property visitor, add edge-case tests
  • 818171e Add release notes for PR #7467
  • a451039 Update category for release notes
  • 17c734c [AI] Merge master and resolve conflicts
  • 4f23589 [AI] Fix JSON syntax error after merge
  • 49e1d03 Merge remote-tracking branch 'origin/master' into claude/eslint-architectural-boundaries-kipTg
  • 9c667b2 [AI] Merge master and fix lint errors in enforce-boundaries rule
  • a58aab9 Merge branch 'master' into claude/eslint-architectural-boundaries-kipTg

📊 Changes

12 files changed (+316 additions, -7 deletions)

View changed files

📝 .oxlintrc.json (+7 -0)
📝 packages/component-library/.storybook/preview.tsx (+3 -0)
📝 packages/desktop-client/package.json (+1 -0)
📝 packages/desktop-client/src/components/reports/reports/Formula.tsx (+1 -1)
📝 packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx (+1 -1)
📝 packages/eslint-plugin-actual/lib/index.js (+1 -0)
packages/eslint-plugin-actual/lib/rules/__tests__/enforce-boundaries.test.js (+183 -0)
packages/eslint-plugin-actual/lib/rules/enforce-boundaries.js (+106 -0)
📝 packages/loot-core/package.json (+1 -0)
📝 packages/loot-core/src/server/migrate/migrations.ts (+5 -5)
📝 packages/loot-core/vite.desktop.config.mts (+1 -0)
upcoming-release-notes/7467.md (+6 -0)

📄 Description

Description

Enforcing architectural boundaries via an eslint rule. The last PR in this series of fixing imports.

Fixes https://github.com/actualbudget/actual/issues/7017

Testing

n/a

Checklist

  • Release notes added (see link above)
  • 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

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 34 12.93 MB → 12.93 MB (+33 B) +0.00%
loot-core 1 4.85 MB 0%
api 1 3.88 MB 0%
cli 1 7.91 MB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
34 12.93 MB → 12.93 MB (+33 B) +0.00%
Changeset
File Δ Size
package.json 📈 +33 B (+0.39%) 8.19 kB → 8.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 1.85 MB → 1.85 MB (+33 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 814.39 kB 0%
static/js/PayeeRuleCountLabel.js 52.12 kB 0%
static/js/ReportRouter.js 1.18 MB 0%
static/js/ScheduleEditForm.js 136.13 kB 0%
static/js/TransactionEdit.js 185.13 kB 0%
static/js/TransactionList.js 82.8 kB 0%
static/js/Value.js 4.34 MB 0%
static/js/ca.js 191.72 kB 0%
static/js/chart-theme.js 705.55 kB 0%
static/js/client.js 450.92 kB 0%
static/js/da.js 104.4 kB 0%
static/js/de.js 174.12 kB 0%
static/js/en-GB.js 8.2 kB 0%
static/js/en.js 176.5 kB 0%
static/js/es.js 181.54 kB 0%
static/js/extends.js 486.5 kB 0%
static/js/fr.js 176.79 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 165.68 kB 0%
static/js/narrow.js 363.68 kB 0%
static/js/nb-NO.js 151.58 kB 0%
static/js/nl.js 108.66 kB 0%
static/js/pl.js 88.34 kB 0%
static/js/pt-BR.js 193.49 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 178.91 kB 0%
static/js/theme.js 30.79 kB 0%
static/js/uk.js 212.28 kB 0%
static/js/useFormatList.js 9.86 kB 0%
static/js/wide.js 292 B 0%
static/js/workbox-window.prod.es5.js 7.33 kB 0%
static/js/zh-Hans.js 110.19 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.85 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.Dtv5lNQw.js 4.85 MB 0%

api

Total

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

cli

Total

Files count Total bundle size % Changed
1 7.91 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
cli.js 7.91 MB 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/7467 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 4/11/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `claude/eslint-architectural-boundaries-kipTg` --- ### 📝 Commits (10+) - [`ec73e27`](https://github.com/actualbudget/actual/commit/ec73e274fd621d6f3d050c9f2dfaf2c305f0a79d) [AI] Add enforce-boundaries ESLint rule for architectural boundaries - [`b32a1e9`](https://github.com/actualbudget/actual/commit/b32a1e9c20755eb95d6c61c2fc5db2dbe0792c33) [AI] Fix enforce-boundaries lint violations - [`7eb7043`](https://github.com/actualbudget/actual/commit/7eb7043a731e0d6fab584ae2404cc49e2496c7b6) [AI] Clean up enforce-boundaries rule: remove redundant comments, optimize Property visitor, add edge-case tests - [`818171e`](https://github.com/actualbudget/actual/commit/818171e908ef63fb9eaf9c9e81f9e01d2bd76de8) Add release notes for PR #7467 - [`a451039`](https://github.com/actualbudget/actual/commit/a45103943642eec7e717f026094f7bad0f3c8b07) Update category for release notes - [`17c734c`](https://github.com/actualbudget/actual/commit/17c734c9909289b33b65b97b22049a703d0544ba) [AI] Merge master and resolve conflicts - [`4f23589`](https://github.com/actualbudget/actual/commit/4f2358913f9dab84a83ad85eb2189b9415528061) [AI] Fix JSON syntax error after merge - [`49e1d03`](https://github.com/actualbudget/actual/commit/49e1d03cfd4f0983117922f3a31d25ba202251d2) Merge remote-tracking branch 'origin/master' into claude/eslint-architectural-boundaries-kipTg - [`9c667b2`](https://github.com/actualbudget/actual/commit/9c667b22dbd5e89a22750adfd51aff4519bf2e83) [AI] Merge master and fix lint errors in enforce-boundaries rule - [`a58aab9`](https://github.com/actualbudget/actual/commit/a58aab91fd5706279d23da2c6b5996e05921d7f3) Merge branch 'master' into claude/eslint-architectural-boundaries-kipTg ### 📊 Changes **12 files changed** (+316 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `.oxlintrc.json` (+7 -0) 📝 `packages/component-library/.storybook/preview.tsx` (+3 -0) 📝 `packages/desktop-client/package.json` (+1 -0) 📝 `packages/desktop-client/src/components/reports/reports/Formula.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.test.tsx` (+1 -1) 📝 `packages/eslint-plugin-actual/lib/index.js` (+1 -0) ➕ `packages/eslint-plugin-actual/lib/rules/__tests__/enforce-boundaries.test.js` (+183 -0) ➕ `packages/eslint-plugin-actual/lib/rules/enforce-boundaries.js` (+106 -0) 📝 `packages/loot-core/package.json` (+1 -0) 📝 `packages/loot-core/src/server/migrate/migrations.ts` (+5 -5) 📝 `packages/loot-core/vite.desktop.config.mts` (+1 -0) ➕ `upcoming-release-notes/7467.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> Enforcing architectural boundaries via an eslint rule. The last PR in this series of fixing imports. ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> Fixes https://github.com/actualbudget/actual/issues/7017 ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> n/a ## Checklist - [x] Release notes added (see link above) - [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 <!--- actual-bot-sections ---> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 34 | 12.93 MB → 12.93 MB (+33 B) | +0.00% loot-core | 1 | 4.85 MB | 0% api | 1 | 3.88 MB | 0% cli | 1 | 7.91 MB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 34 | 12.93 MB → 12.93 MB (+33 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `package.json` | 📈 +33 B (+0.39%) | 8.19 kB → 8.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 | 1.85 MB → 1.85 MB (+33 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/BackgroundImage.js | 121.09 kB | 0% static/js/FormulaEditor.js | 814.39 kB | 0% static/js/PayeeRuleCountLabel.js | 52.12 kB | 0% static/js/ReportRouter.js | 1.18 MB | 0% static/js/ScheduleEditForm.js | 136.13 kB | 0% static/js/TransactionEdit.js | 185.13 kB | 0% static/js/TransactionList.js | 82.8 kB | 0% static/js/Value.js | 4.34 MB | 0% static/js/ca.js | 191.72 kB | 0% static/js/chart-theme.js | 705.55 kB | 0% static/js/client.js | 450.92 kB | 0% static/js/da.js | 104.4 kB | 0% static/js/de.js | 174.12 kB | 0% static/js/en-GB.js | 8.2 kB | 0% static/js/en.js | 176.5 kB | 0% static/js/es.js | 181.54 kB | 0% static/js/extends.js | 486.5 kB | 0% static/js/fr.js | 176.79 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 165.68 kB | 0% static/js/narrow.js | 363.68 kB | 0% static/js/nb-NO.js | 151.58 kB | 0% static/js/nl.js | 108.66 kB | 0% static/js/pl.js | 88.34 kB | 0% static/js/pt-BR.js | 193.49 kB | 0% static/js/resize-observer.js | 18.06 kB | 0% static/js/th.js | 178.91 kB | 0% static/js/theme.js | 30.79 kB | 0% static/js/uk.js | 212.28 kB | 0% static/js/useFormatList.js | 9.86 kB | 0% static/js/wide.js | 292 B | 0% static/js/workbox-window.prod.es5.js | 7.33 kB | 0% static/js/zh-Hans.js | 110.19 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.85 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **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.Dtv5lNQw.js | 4.85 MB | 0% </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 3.88 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **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 | 3.88 MB | 0% </div> </details> --- #### cli **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 7.91 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **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 | 7.91 MB | 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 09:02:35 -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#33111