Skip to content

Commit 67fcf2d

Browse files
committed
Stub plugin if no options removed.
1 parent f65af6d commit 67fcf2d

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

manualRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ const result =
2121
})?.code ?? "";
2222

2323
console.log(
24-
format(result, { semi: false, singleQuote: true, parser: "babel" })
24+
format(result, { semi: false, singleQuote: true, parser: "typescript" })
2525
);

src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ export default declare((_: any, options: Config) => {
8080
// );
8181
// }
8282

83-
if (typeof options === "object" && Object.keys(options).length === 0) {
84-
return {
85-
visitor: {},
86-
};
87-
}
88-
8983
return {
9084
name: "import-move-codemod",
9185
inherits: () => typescript(_, { ...options, isTSX: true }),

0 commit comments

Comments
 (0)