typescript/consistent-type-imports Nursery
What it does
Enforce consistent usage of type imports.
Why is this bad?
inconsistent usage of type imports can make the code harder to read and understand.
Example
ts
import { Foo } from "Foo";
type T = Foo;
type S = import("Foo");
How to use
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny typescript/consistent-type-imports
json
{
"rules": {
"typescript/consistent-type-imports": "error"
}
}