[PR #6299] Fix lint violations (vol.1) #13490

Closed
opened 2026-04-10 21:55:43 -05:00 by GiteaMirror · 0 comments
Owner

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

State: closed
Merged: Yes


Summary

This PR cleans up unused variables and code across the codebase, enabling stricter linting rules in oxlint.

Changes

Linting Configuration

  • Enable no-unused-vars, no-useless-catch, and import/namespace rules in oxlint (previously disabled)

Code Cleanup

  • Unused catch parameters: Remove unused exception variables (catch (e)catch)
  • Unused destructured variables: Prefix with underscore convention (e.g., _inflow, _sort_order)
  • Unused imports: Remove ReactNode, CSSProperties, React namespace imports
  • Unused types: Comment out DbPendingTransaction and DbNextDate type definitions
  • Unused file: Delete packages/desktop-electron/modules.ts

Bug Fix

  • Fix locale.ts to avoid ESLint namespace import warnings by spreading date-fns/locale into a plain object

Files Changed

  • 52 files modified across multiple packages
  • 1 file deleted (modules.ts)

Testing

  • All changes are code style/linting improvements with no functional changes
  • Existing tests should continue to pass
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6299 **State:** closed **Merged:** Yes --- ## Summary This PR cleans up unused variables and code across the codebase, enabling stricter linting rules in oxlint. ## Changes ### Linting Configuration - Enable `no-unused-vars`, `no-useless-catch`, and `import/namespace` rules in oxlint (previously disabled) ### Code Cleanup - **Unused catch parameters**: Remove unused exception variables (`catch (e)` → `catch`) - **Unused destructured variables**: Prefix with underscore convention (e.g., `_inflow`, `_sort_order`) - **Unused imports**: Remove `ReactNode`, `CSSProperties`, `React` namespace imports - **Unused types**: Comment out `DbPendingTransaction` and `DbNextDate` type definitions - **Unused file**: Delete `packages/desktop-electron/modules.ts` ### Bug Fix - Fix `locale.ts` to avoid ESLint namespace import warnings by spreading `date-fns/locale` into a plain object ## Files Changed - 52 files modified across multiple packages - 1 file deleted (`modules.ts`) ## Testing - All changes are code style/linting improvements with no functional changes - Existing tests should continue to pass
GiteaMirror added the pull-request label 2026-04-10 21:55:43 -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#13490