diff --git a/src/core/declaration.ts b/src/core/declaration.ts index 1e6a8067..1cd0431e 100644 --- a/src/core/declaration.ts +++ b/src/core/declaration.ts @@ -124,7 +124,9 @@ export {} declare module '@vue/runtime-core' {` - let code = `// generated by unplugin-vue-components + let code = `/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 ${head}` diff --git a/test/__snapshots__/dts.test.ts.snap b/test/__snapshots__/dts.test.ts.snap index 41928376..95c4efc4 100644 --- a/test/__snapshots__/dts.test.ts.snap +++ b/test/__snapshots__/dts.test.ts.snap @@ -1,7 +1,9 @@ // Vitest Snapshot v1 exports[`dts > components only 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' @@ -19,7 +21,9 @@ declare module '@vue/runtime-core' { `; exports[`dts > directive only 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' @@ -35,7 +39,9 @@ declare module '@vue/runtime-core' { `; exports[`dts > getDeclaration 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' @@ -93,7 +99,9 @@ exports[`dts > parseDeclaration 1`] = ` `; exports[`dts > vue 2.7 components only 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 export {} @@ -109,7 +117,9 @@ declare module 'vue' { `; exports[`dts > writeDeclaration - keep unused 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' @@ -133,7 +143,9 @@ declare module '@vue/runtime-core' { `; exports[`dts > writeDeclaration 1`] = ` -"// generated by unplugin-vue-components +"/* eslint-disable */ +/* prettier-ignore */ +// generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' diff --git a/test/dts.test.ts b/test/dts.test.ts index 6e13b616..2bb67aaa 100644 --- a/test/dts.test.ts +++ b/test/dts.test.ts @@ -123,6 +123,8 @@ const _directive_loading = _resolveDirective("loading")` test('parseDeclaration', async () => { const code = ` +/* eslint-disable */ +/* prettier-ignore */ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 @@ -144,6 +146,8 @@ declare module '@vue/runtime-core' { test('parseDeclaration - has icon component like ', async () => { const code = ` +/* eslint-disable */ +/* prettier-ignore */ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 @@ -165,6 +169,8 @@ declare module '@vue/runtime-core' { test('parseDeclaration - with directives', async () => { const code = ` +/* eslint-disable */ +/* prettier-ignore */ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy