From 02650225182c946f631103624da597271cd488d4 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 1 May 2022 11:52:59 +0800 Subject: [PATCH] chore: lint --- .vscode/settings.json | 6 +++--- src/modules/pwa.ts | 2 +- test/component.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c8501cc..50bbaf7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,10 +6,10 @@ "i18n-ally.sortKeys": true, "prettier.enable": false, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, + "source.fixAll.eslint": true }, "files.associations": { - "*.css": "postcss", + "*.css": "postcss" }, - "editor.formatOnSave": false, + "editor.formatOnSave": false } diff --git a/src/modules/pwa.ts b/src/modules/pwa.ts index 319d9fd..c0c9f82 100644 --- a/src/modules/pwa.ts +++ b/src/modules/pwa.ts @@ -5,7 +5,7 @@ export const install: UserModule = ({ isClient, router }) => { if (!isClient) return - router.isReady().then(async() => { + router.isReady().then(async () => { const { registerSW } = await import('virtual:pwa-register') registerSW({ immediate: true }) }) diff --git a/test/component.test.ts b/test/component.test.ts index d981aa5..6ac9b41 100644 --- a/test/component.test.ts +++ b/test/component.test.ts @@ -9,7 +9,7 @@ describe('Counter.vue', () => { expect(wrapper.html()).toMatchSnapshot() }) - it('should be interactive', async() => { + it('should be interactive', async () => { const wrapper = mount(Counter, { props: { initial: 0 } }) expect(wrapper.text()).toContain('0')