Skip to content

Standardize on type-only imports #32368

Description

@roryabraham

Slack context: https://expensify.slack.com/archives/C01GTK53T8Q/p1701371123201489

Problem

We are inconsistent about how we import types. Type-only imports are preferred because they disappear at runtime, making the program more lightweight. It also improves code clarity because it's obvious that a type is being imported and not some other value.

Solution

Enable the consistent-type-imports lint rule w/ prefer: type-imports

Issue OwnerCurrent Issue Owner: @chrispader

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions