From f45936074e621b31203fb2942250b8a21a11173d Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Tue, 23 Nov 2021 02:05:07 +0000 Subject: [PATCH] [ci] yarn format --- examples/with-vite-plugin-pwa/astro.config.mjs | 6 +++--- examples/with-vite-plugin-pwa/src/index.ts | 8 ++++---- examples/with-vite-plugin-pwa/src/vite-env.d.ts | 14 +++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/with-vite-plugin-pwa/astro.config.mjs b/examples/with-vite-plugin-pwa/astro.config.mjs index 29194f9d6c..d8fc2ac262 100644 --- a/examples/with-vite-plugin-pwa/astro.config.mjs +++ b/examples/with-vite-plugin-pwa/astro.config.mjs @@ -1,4 +1,4 @@ -import { VitePWA } from 'vite-plugin-pwa' +import { VitePWA } from 'vite-plugin-pwa'; // Full Astro Configuration API Documentation: // https://docs.astro.build/reference/configuration-reference @@ -11,6 +11,6 @@ import { VitePWA } from 'vite-plugin-pwa' // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ vite: { - plugins: [VitePWA()] - } + plugins: [VitePWA()], + }, }); diff --git a/examples/with-vite-plugin-pwa/src/index.ts b/examples/with-vite-plugin-pwa/src/index.ts index af679697f2..187159528f 100644 --- a/examples/with-vite-plugin-pwa/src/index.ts +++ b/examples/with-vite-plugin-pwa/src/index.ts @@ -1,10 +1,10 @@ -import { registerSW } from 'virtual:pwa-register' +import { registerSW } from 'virtual:pwa-register'; const updateSW = registerSW({ onNeedRefresh() {}, onOfflineReady() { - console.log("Offline ready"); - } -}) + console.log('Offline ready'); + }, +}); updateSW(); diff --git a/examples/with-vite-plugin-pwa/src/vite-env.d.ts b/examples/with-vite-plugin-pwa/src/vite-env.d.ts index 6b2c10cd84..6b53adfef2 100644 --- a/examples/with-vite-plugin-pwa/src/vite-env.d.ts +++ b/examples/with-vite-plugin-pwa/src/vite-env.d.ts @@ -1,11 +1,11 @@ declare module 'virtual:pwa-register' { export type RegisterSWOptions = { - immediate?: boolean - onNeedRefresh?: () => void - onOfflineReady?: () => void - onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void - } + immediate?: boolean; + onNeedRefresh?: () => void; + onOfflineReady?: () => void; + onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void; + onRegisterError?: (error: any) => void; + }; - export function registerSW(options?: RegisterSWOptions): (reloadPage?: boolean) => Promise + export function registerSW(options?: RegisterSWOptions): (reloadPage?: boolean) => Promise; }