[PR #1956] [MERGED] [Maintenance] ESLint - prefer-const #4042

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1956
Author: @joel-jeremy
Created: 11/22/2023
Status: Merged
Merged: 11/22/2023
Merged by: @joel-jeremy

Base: masterHead: prefer-const


📝 Commits (1)

📊 Changes

30 files changed (+166 additions, -141 deletions)

View changed files

📝 .eslintrc.js (+19 -0)
📝 packages/api/app/query.js (+3 -3)
📝 packages/crdt/src/crdt/merkle.test.ts (+8 -8)
📝 packages/crdt/src/crdt/merkle.ts (+13 -13)
📝 packages/crdt/src/crdt/timestamp.test.ts (+5 -5)
📝 packages/crdt/src/crdt/timestamp.ts (+17 -17)
📝 packages/desktop-client/src/browser-preload.browser.js (+7 -7)
📝 packages/desktop-client/src/browser-server.js (+4 -4)
📝 packages/desktop-client/src/global-events.js (+5 -5)
📝 packages/desktop-client/src/gocardless.js (+1 -1)
📝 packages/desktop-client/src/hooks/useLatestVersion.ts (+2 -2)
📝 packages/desktop-client/src/hooks/useNavigate.ts (+1 -1)
📝 packages/desktop-client/src/hooks/useProperFocus.tsx (+11 -11)
📝 packages/desktop-client/src/hooks/useResizeObserver.ts (+2 -2)
📝 packages/desktop-client/src/hooks/useSelected.tsx (+23 -23)
📝 packages/desktop-client/src/icons/Loading.tsx (+2 -2)
📝 packages/desktop-client/src/plaid.js (+3 -3)
📝 packages/desktop-client/src/style/styles.ts (+2 -2)
📝 packages/desktop-client/src/style/theme.tsx (+3 -3)
📝 packages/desktop-client/src/util/router-tools.tsx (+1 -1)

...and 10 more files

📄 Description

This is the first PR to apply ESLint's prefer-const rule. The strategy is to add more on and more folders to .eslintrc.js until the whole codebase warnings are address and then we can remove the override in .eslintrc.js to apply the rule globally.

For this PR, I applied the rule to less frequently changed files so it shouldn't conflict with the other ongoing PRs.


🔄 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/1956 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 11/22/2023 **Status:** ✅ Merged **Merged:** 11/22/2023 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `prefer-const` --- ### 📝 Commits (1) - [`0d68927`](https://github.com/actualbudget/actual/commit/0d68927e09ed3a9c359fb9e8e8750216ee8588cd) ESLint prefer-const ### 📊 Changes **30 files changed** (+166 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `.eslintrc.js` (+19 -0) 📝 `packages/api/app/query.js` (+3 -3) 📝 `packages/crdt/src/crdt/merkle.test.ts` (+8 -8) 📝 `packages/crdt/src/crdt/merkle.ts` (+13 -13) 📝 `packages/crdt/src/crdt/timestamp.test.ts` (+5 -5) 📝 `packages/crdt/src/crdt/timestamp.ts` (+17 -17) 📝 `packages/desktop-client/src/browser-preload.browser.js` (+7 -7) 📝 `packages/desktop-client/src/browser-server.js` (+4 -4) 📝 `packages/desktop-client/src/global-events.js` (+5 -5) 📝 `packages/desktop-client/src/gocardless.js` (+1 -1) 📝 `packages/desktop-client/src/hooks/useLatestVersion.ts` (+2 -2) 📝 `packages/desktop-client/src/hooks/useNavigate.ts` (+1 -1) 📝 `packages/desktop-client/src/hooks/useProperFocus.tsx` (+11 -11) 📝 `packages/desktop-client/src/hooks/useResizeObserver.ts` (+2 -2) 📝 `packages/desktop-client/src/hooks/useSelected.tsx` (+23 -23) 📝 `packages/desktop-client/src/icons/Loading.tsx` (+2 -2) 📝 `packages/desktop-client/src/plaid.js` (+3 -3) 📝 `packages/desktop-client/src/style/styles.ts` (+2 -2) 📝 `packages/desktop-client/src/style/theme.tsx` (+3 -3) 📝 `packages/desktop-client/src/util/router-tools.tsx` (+1 -1) _...and 10 more files_ </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 --> This is the first PR to apply ESLint's `prefer-const` rule. The strategy is to add more on and more folders to `.eslintrc.js` until the whole codebase warnings are address and then we can remove the override in `.eslintrc.js` to apply the rule globally. For this PR, I applied the rule to less frequently changed files so it shouldn't conflict with the other ongoing PRs. --- <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:50:41 -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#4042