[PR #1070] [MERGED] More import-related ESLint rules #3500

Closed
opened 2026-02-28 20:42:33 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1070
Author: @j-f1
Created: 5/29/2023
Status: Merged
Merged: 5/29/2023
Merged by: @j-f1

Base: masterHead: jed/import-rules


📝 Commits (3)

  • 3a3e752 + import/no-duplicates
  • 573f980 Block importing from the 'loot-core' package inside loot-core
  • 4bc2739 Add release note

📊 Changes

9 files changed (+43 additions, -18 deletions)

View changed files

📝 .eslintrc.js (+18 -0)
📝 packages/desktop-client/src/components/SidebarWithData.js (+1 -2)
📝 packages/desktop-client/src/components/accounts/MobileTransaction.js (+5 -2)
📝 packages/desktop-client/src/components/manager/ConfigServer.js (+4 -2)
📝 packages/loot-core/src/client/data-hooks/accounts.tsx (+3 -3)
📝 packages/loot-core/src/client/data-hooks/payees.tsx (+3 -3)
📝 packages/loot-core/src/client/data-hooks/schedules.tsx (+2 -5)
📝 packages/loot-core/src/client/query-hooks.tsx (+1 -1)
upcoming-release-notes/1070.md (+6 -0)

📄 Description

  • Enforce that imports from the same package are merged into a single import
  • In loot-core, require that imports of other loot-core files use a relative import (like the vast majority of such imports) rather than specifiers starting with loot-core/ (probably a result of moving files out of other packages into loot-core)

🔄 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/1070 **Author:** [@j-f1](https://github.com/j-f1) **Created:** 5/29/2023 **Status:** ✅ Merged **Merged:** 5/29/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `jed/import-rules` --- ### 📝 Commits (3) - [`3a3e752`](https://github.com/actualbudget/actual/commit/3a3e7521b383f0e9d28c398bde0c898f6c1a8ff3) + import/no-duplicates - [`573f980`](https://github.com/actualbudget/actual/commit/573f9804657929d6225c226f8462595e4367d48c) Block importing from the 'loot-core' package inside loot-core - [`4bc2739`](https://github.com/actualbudget/actual/commit/4bc27398a8e2ce8ae960a8ad0960db438c5af0f2) Add release note ### 📊 Changes **9 files changed** (+43 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `.eslintrc.js` (+18 -0) 📝 `packages/desktop-client/src/components/SidebarWithData.js` (+1 -2) 📝 `packages/desktop-client/src/components/accounts/MobileTransaction.js` (+5 -2) 📝 `packages/desktop-client/src/components/manager/ConfigServer.js` (+4 -2) 📝 `packages/loot-core/src/client/data-hooks/accounts.tsx` (+3 -3) 📝 `packages/loot-core/src/client/data-hooks/payees.tsx` (+3 -3) 📝 `packages/loot-core/src/client/data-hooks/schedules.tsx` (+2 -5) 📝 `packages/loot-core/src/client/query-hooks.tsx` (+1 -1) ➕ `upcoming-release-notes/1070.md` (+6 -0) </details> ### 📄 Description - Enforce that imports from the same package are merged into a single import - In `loot-core`, require that imports of other `loot-core` files use a relative import (like the vast majority of such imports) rather than specifiers starting with `loot-core/` (probably a result of moving files out of other packages into `loot-core`) --- <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-02-28 20:42:33 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3500