[GH-ISSUE #6548] lint: enforce consistent TypeScript type import style #28562

Closed
opened 2026-04-18 05:19:05 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @coderabbitai[bot] on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/6548

Problem

The codebase currently has inconsistent TypeScript type import styles. Some files use:

import type { Foo, Bar } from 'module';

While others use:

import { type Foo, type Bar } from 'module';

Proposal

We should enforce a consistent style using ESLint's OXlint @typescript-eslint/consistent-type-imports rule.

References

Originally created by @coderabbitai[bot] on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/6548 ## Problem The codebase currently has inconsistent TypeScript type import styles. Some files use: ```typescript import type { Foo, Bar } from 'module'; ``` While others use: ```typescript import { type Foo, type Bar } from 'module'; ``` ## Proposal We should enforce a consistent style using ~ESLint's~ OXlint `@typescript-eslint/consistent-type-imports` rule. ## References - Requested in: https://github.com/actualbudget/actual/pull/6411#discussion_r2659862273 - Related PR: https://github.com/actualbudget/actual/pull/6411 - Requested by: @MatissJanis
GiteaMirror added the tech debtgood first issue labels 2026-04-18 05:19:06 -05:00
Author
Owner

@miski-h commented on GitHub (Jan 4, 2026):

Hi! I'd like to work on this.

<!-- gh-comment-id:3708353640 --> @miski-h commented on GitHub (Jan 4, 2026): Hi! I'd like to work on this.
Author
Owner

@MatissJanis commented on GitHub (Jan 4, 2026):

Feel free to send a PR for it. We do not generally assign tickets to people.

<!-- gh-comment-id:3708390330 --> @MatissJanis commented on GitHub (Jan 4, 2026): Feel free to send a PR for it. We do not generally assign tickets to people.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#28562