[PR #1959] [MERGED] 🔧 (eslint) enable object-shorthand:properties rule #45864

Closed
opened 2026-04-26 07:58:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1959
Author: @MatissJanis
Created: 11/22/2023
Status: Merged
Merged: 11/22/2023
Merged by: @MatissJanis

Base: masterHead: matiss/eslint-shorthand


📝 Commits (2)

  • 614c401 🔧 (eslint) enable object-shorthand:properties rule
  • b4ce890 Release notes

📊 Changes

39 files changed (+73 additions, -68 deletions)

View changed files

📝 .eslintrc.js (+1 -0)
📝 packages/crdt/src/crdt/timestamp.ts (+3 -3)
📝 packages/desktop-client/src/browser-preload.browser.js (+1 -1)
📝 packages/desktop-client/src/components/FixedSizeList.js (+1 -1)
📝 packages/desktop-client/src/components/accounts/Account.js (+3 -3)
📝 packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx (+1 -1)
📝 packages/desktop-client/src/components/budget/MobileBudget.js (+1 -1)
📝 packages/desktop-client/src/components/budget/MobileBudgetTable.js (+1 -1)
📝 packages/desktop-client/src/components/common/Select.tsx (+1 -1)
📝 packages/desktop-client/src/components/filters/FiltersMenu.js (+2 -2)
📝 packages/desktop-client/src/components/filters/SavedFilters.js (+4 -4)
📝 packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx (+3 -3)
📝 packages/desktop-client/src/components/schedules/EditSchedule.js (+1 -1)
📝 packages/desktop-client/src/components/select/RecurringSchedulePicker.js (+2 -4)
📝 packages/desktop-client/src/components/sidebar/Account.tsx (+1 -1)
📝 packages/desktop-client/src/components/table.tsx (+1 -1)
📝 packages/desktop-client/src/components/transactions/MobileTransaction.js (+1 -1)
📝 packages/desktop-client/src/components/transactions/TransactionsTable.js (+2 -2)
📝 packages/desktop-client/src/components/transactions/TransactionsTable.test.js (+3 -3)
📝 packages/desktop-electron/afterSignHook.js (+1 -1)

...and 19 more files

📄 Description

Disallow this syntax:

{
   hello: hello
}

Prefer:

{
   hello
}

🔄 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/1959 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 11/22/2023 **Status:** ✅ Merged **Merged:** 11/22/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `matiss/eslint-shorthand` --- ### 📝 Commits (2) - [`614c401`](https://github.com/actualbudget/actual/commit/614c401fe66433b01db3e6f899f8f113c868c397) :wrench: (eslint) enable object-shorthand:properties rule - [`b4ce890`](https://github.com/actualbudget/actual/commit/b4ce8906c631f36bbd531fd22dd8920adfc354b1) Release notes ### 📊 Changes **39 files changed** (+73 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `.eslintrc.js` (+1 -0) 📝 `packages/crdt/src/crdt/timestamp.ts` (+3 -3) 📝 `packages/desktop-client/src/browser-preload.browser.js` (+1 -1) 📝 `packages/desktop-client/src/components/FixedSizeList.js` (+1 -1) 📝 `packages/desktop-client/src/components/accounts/Account.js` (+3 -3) 📝 `packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/budget/MobileBudget.js` (+1 -1) 📝 `packages/desktop-client/src/components/budget/MobileBudgetTable.js` (+1 -1) 📝 `packages/desktop-client/src/components/common/Select.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/filters/FiltersMenu.js` (+2 -2) 📝 `packages/desktop-client/src/components/filters/SavedFilters.js` (+4 -4) 📝 `packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx` (+3 -3) 📝 `packages/desktop-client/src/components/schedules/EditSchedule.js` (+1 -1) 📝 `packages/desktop-client/src/components/select/RecurringSchedulePicker.js` (+2 -4) 📝 `packages/desktop-client/src/components/sidebar/Account.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/table.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/transactions/MobileTransaction.js` (+1 -1) 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.js` (+2 -2) 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.test.js` (+3 -3) 📝 `packages/desktop-electron/afterSignHook.js` (+1 -1) _...and 19 more files_ </details> ### 📄 Description Disallow this syntax: ``` { hello: hello } ``` Prefer: ``` { hello } ``` --- <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-26 07:58:57 -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#45864