From e9b77bd020514694e262f0fe9bbc8b6367a9751e Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:26:57 +0000 Subject: [PATCH] chore: fix lint --- packages/unplugin-typia/src/bun.ts | 1 + packages/unplugin-typia/src/core/index.ts | 1 + packages/unplugin-typia/tests/rollup.spec.ts | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/unplugin-typia/src/bun.ts b/packages/unplugin-typia/src/bun.ts index f7d561c0..4fea9308 100644 --- a/packages/unplugin-typia/src/bun.ts +++ b/packages/unplugin-typia/src/bun.ts @@ -37,6 +37,7 @@ async function taggedTransform( const result = await _transform(source, id); + // eslint-disable-next-line ts/switch-exhaustiveness-check switch (true) { case result == null: return undefined; diff --git a/packages/unplugin-typia/src/core/index.ts b/packages/unplugin-typia/src/core/index.ts index 15e2d001..81ed93fe 100644 --- a/packages/unplugin-typia/src/core/index.ts +++ b/packages/unplugin-typia/src/core/index.ts @@ -194,6 +194,7 @@ const unpluginFactory: UnpluginFactory< /** transform code */ let code: Data | undefined; + // eslint-disable-next-line ts/switch-exhaustiveness-check switch (true) { case isSvelteFile(id): ({ code } = await sveltePreprocess({ id, source, transform: _transform })); diff --git a/packages/unplugin-typia/tests/rollup.spec.ts b/packages/unplugin-typia/tests/rollup.spec.ts index 6548da5e..0771a6e4 100644 --- a/packages/unplugin-typia/tests/rollup.spec.ts +++ b/packages/unplugin-typia/tests/rollup.spec.ts @@ -11,12 +11,10 @@ async function transform(_id: ID) { const result = await rollupBuild( id, [ - // @ts-expect-error type does not match UnpluginInlineTypia({ cache: false, log: false, }), - // @ts-expect-error type does not match RollupEsbuildPlugin(), { name: 'test:mod-options',