[PR #6300] Fix lint violations (vol.2) #20799

Closed
opened 2026-04-14 21:45:16 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6300

State: closed
Merged: Yes


Summary

This PR improves code readability and maintainability across various components:

Changes

  • Changed while (1) to while (true) for better clarity
  • Simplified conditional checks by removing unnecessary boolean casts
  • Added missing key props in mapped elements to ensure proper rendering in lists
  • Adjusted the handling of hidden states in budget components for clearer logic
  • Cleaned up linting rules in .oxlintrc.json to streamline configuration

Files Modified

  • .oxlintrc.json
  • packages/crdt/src/crdt/merkle.ts
  • packages/desktop-client/src/components/CommandBar.tsx
  • packages/desktop-client/src/components/autocomplete/Autocomplete.tsx
  • packages/desktop-client/src/components/autocomplete/FilterList.tsx
  • packages/desktop-client/src/components/autocomplete/ReportList.tsx
  • packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx
  • packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx
  • packages/desktop-client/src/components/mobile/budget/IncomeGroup.tsx
  • packages/desktop-electron/e2e/fixtures.ts
  • packages/docs/docs/api/APIList.js
  • packages/docs/docs/api/types.js
  • packages/docs/src/components/Key.jsx
  • packages/loot-core/src/server/main.test.ts
  • packages/loot-core/src/server/schedules/find-schedules.ts
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6300 **State:** closed **Merged:** Yes --- ## Summary This PR improves code readability and maintainability across various components: ### Changes - Changed `while (1)` to `while (true)` for better clarity - Simplified conditional checks by removing unnecessary boolean casts - Added missing `key` props in mapped elements to ensure proper rendering in lists - Adjusted the handling of hidden states in budget components for clearer logic - Cleaned up linting rules in `.oxlintrc.json` to streamline configuration ### Files Modified - `.oxlintrc.json` - `packages/crdt/src/crdt/merkle.ts` - `packages/desktop-client/src/components/CommandBar.tsx` - `packages/desktop-client/src/components/autocomplete/Autocomplete.tsx` - `packages/desktop-client/src/components/autocomplete/FilterList.tsx` - `packages/desktop-client/src/components/autocomplete/ReportList.tsx` - `packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx` - `packages/desktop-client/src/components/mobile/budget/IncomeCategoryListItem.tsx` - `packages/desktop-client/src/components/mobile/budget/IncomeGroup.tsx` - `packages/desktop-electron/e2e/fixtures.ts` - `packages/docs/docs/api/APIList.js` - `packages/docs/docs/api/types.js` - `packages/docs/src/components/Key.jsx` - `packages/loot-core/src/server/main.test.ts` - `packages/loot-core/src/server/schedules/find-schedules.ts`
GiteaMirror added the pull-request label 2026-04-14 21:45:16 -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#20799