lint: enforce consistent TypeScript type import style #2770

Closed
opened 2026-02-28 20:27:15 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @coderabbitai[bot] on GitHub (Jan 4, 2026).

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). ## 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-02-28 20:27:16 -06:00
Author
Owner

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

Hi! I'd like to work on this.

@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.

@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#2770