Skip to content

Commit 5f1e6f2

Browse files
committed
Automatically prefix type only imports with type
this new option will take `import { MessageIn } from "../models/index";` and convert it to `import type { MessageIn } from "../models/index";` (only if it's only used as a type)
1 parent 56f8d66 commit 5f1e6f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/postprocessing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ impl PostprocessorLanguage {
134134
"lint",
135135
"--only=organizeImports",
136136
"--only=noUnusedImports",
137+
"--only=useImportType",
137138
"--unsafe",
138139
"--write",
139140
],

0 commit comments

Comments
 (0)