From: Rizumu Ayaka Date: Fri, 29 Dec 2023 14:11:33 +0000 (+0800) Subject: style: fix format in vapor X-Git-Tag: v3.6.0-alpha.1~16^2~695 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d06aac7aa2dc27e612648fa357d379c5d6669818;p=thirdparty%2Fvuejs%2Fcore.git style: fix format in vapor --- diff --git a/packages/vue-vapor/index.mjs b/packages/vue-vapor/index.mjs index 8b43612483..fcb9204cbc 100644 --- a/packages/vue-vapor/index.mjs +++ b/packages/vue-vapor/index.mjs @@ -1 +1 @@ -export * from './index.js' \ No newline at end of file +export * from './index.js' diff --git a/packages/vue-vapor/src/dev.ts b/packages/vue-vapor/src/dev.ts index 79f233ed92..602079a20e 100644 --- a/packages/vue-vapor/src/dev.ts +++ b/packages/vue-vapor/src/dev.ts @@ -6,7 +6,7 @@ export function initDev() { if (!__ESM_BUNDLER__) { console.info( `You are running a development build of Vue.\n` + - `Make sure to use the production build (*.prod.js) when deploying for production.` + `Make sure to use the production build (*.prod.js) when deploying for production.`, ) } diff --git a/packages/vue-vapor/src/runtime.ts b/packages/vue-vapor/src/runtime.ts index 753b4b5974..86c8db49e6 100644 --- a/packages/vue-vapor/src/runtime.ts +++ b/packages/vue-vapor/src/runtime.ts @@ -20,7 +20,7 @@ export const compile = () => { ? ` Use "vue-vapor.esm-browser.js" instead.` : __GLOBAL__ ? ` Use "vue-vapor.global.js" instead.` - : ``) /* should not happen */ + : ``) /* should not happen */, ) } } diff --git a/playground/setup/dev.js b/playground/setup/dev.js index 79f4f42caf..c3a4b66c32 100644 --- a/playground/setup/dev.js +++ b/playground/setup/dev.js @@ -34,8 +34,8 @@ export function DevPlugin({ browser = false } = {}) { '@vue/compiler-ssr': resolve('compiler-ssr/src'), '@vue/reactivity': resolve('reactivity/src'), - '@vue/shared': resolve('shared/src') - } + '@vue/shared': resolve('shared/src'), + }, }, define: { __COMMIT__: `"__COMMIT__"`, @@ -59,9 +59,9 @@ export function DevPlugin({ browser = false } = {}) { // feature flags __FEATURE_SUSPENSE__: `true`, __FEATURE_OPTIONS_API__: `true`, - __FEATURE_PROD_DEVTOOLS__: `false` - } + __FEATURE_PROD_DEVTOOLS__: `false`, + }, } - } + }, } } diff --git a/playground/setup/vite.js b/playground/setup/vite.js index a9525aeaf4..e6b9a92720 100644 --- a/playground/setup/vite.js +++ b/playground/setup/vite.js @@ -8,7 +8,7 @@ startVite( { plugins: [DevPlugin()] }, { deps: { - inline: ['@vitejs/plugin-vue'] - } - } + inline: ['@vitejs/plugin-vue'], + }, + }, ) diff --git a/playground/src/App.vue b/playground/src/App.vue index 7e0abdccc7..f7c7a681de 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -4,7 +4,7 @@ import { computed, onMounted, onBeforeMount, - getCurrentInstance + getCurrentInstance, } from 'vue/vapor' const instance = getCurrentInstance()! diff --git a/playground/src/directive.vue b/playground/src/directive.vue index 81d4a3e532..722801d59d 100644 --- a/playground/src/directive.vue +++ b/playground/src/directive.vue @@ -16,7 +16,7 @@ const vDirective: ObjectDirective = { }, mounted(node) { if (node.parentElement) node.textContent += 'mounted, ' - } + }, } const vDirectiveSimple: FunctionDirective = (node, binding) => { console.log(node, binding) diff --git a/playground/src/scheduler.vue b/playground/src/scheduler.vue index a3019342a0..6aca729d15 100644 --- a/playground/src/scheduler.vue +++ b/playground/src/scheduler.vue @@ -1,5 +1,12 @@