From 7b38e4ac5a5909372acb52e879115d0fbe3d5ba0 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 26 Sep 2025 11:47:25 +0800 Subject: [PATCH] feat: generated components.d.ts file add oxlint-disable comment --- src/core/declaration.ts | 1 + test/__snapshots__/dts.test.ts.snap | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/core/declaration.ts b/src/core/declaration.ts index cd92106e..ab34175a 100644 --- a/src/core/declaration.ts +++ b/src/core/declaration.ts @@ -119,6 +119,7 @@ export function getDeclaration(ctx: Context, filepath: string, originalImports?: // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ diff --git a/test/__snapshots__/dts.test.ts.snap b/test/__snapshots__/dts.test.ts.snap index 19a4dc66..e5a7583b 100644 --- a/test/__snapshots__/dts.test.ts.snap +++ b/test/__snapshots__/dts.test.ts.snap @@ -6,6 +6,7 @@ exports[`dts > components only 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -25,6 +26,7 @@ exports[`dts > directive only 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -42,6 +44,7 @@ exports[`dts > generate components with prefix 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -78,6 +81,7 @@ exports[`dts > getDeclaration 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -137,6 +141,7 @@ exports[`dts > vue 2.7 components only 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -156,6 +161,7 @@ exports[`dts > writeDeclaration - append 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -181,6 +187,7 @@ exports[`dts > writeDeclaration - overwrite 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */ @@ -203,6 +210,7 @@ exports[`dts > writeDeclaration 1`] = ` // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable +// oxlint-disable export {} /* prettier-ignore */