Skip to content

Commit 85eba59

Browse files
committed
fix(eslint): fix eslint warnings and errors
1 parent 1dccd4c commit 85eba59

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

build/vite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { VitePWA } from 'vite-plugin-pwa'
1515
import Sitemap from 'vite-plugin-sitemap'
1616
import VueDevTools from 'vite-plugin-vue-devtools'
1717
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
18-
import { createViteVConsole } from './vconsole'
1918
import { loadEnv } from 'vite'
19+
import { createViteVConsole } from './vconsole'
2020

2121
export function createVitePlugins(mode: string) {
2222
const env = loadEnv(mode, process.cwd())

src/pages/forgot-password/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ async function getCode() {
6464
6565
isGettingCode.value = true
6666
const res = await userStore.getCode()
67-
if (res.code === 0) {
67+
if (res.code === 0)
6868
showNotify({ type: 'success', message: `${t('forgot-password.sendCodeSuccess')}: ${res.result}` })
69-
}
7069
7170
isGettingCode.value = false
7271
}

src/pages/register/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ async function getCode() {
6868
6969
isGettingCode.value = true
7070
const res = await userStore.getCode()
71-
if (res.code === 0) {
71+
if (res.code === 0)
7272
showNotify({ type: 'success', message: `${t('register.sendCodeSuccess')}: ${res.result}` })
73-
}
7473
7574
isGettingCode.value = false
7675
}

src/router/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ const router = createRouter({
1919
})
2020

2121
// This will update routes at runtime without reloading the page
22-
if (import.meta.hot) {
22+
if (import.meta.hot)
2323
handleHotUpdate(router)
24-
}
2524

2625
router.beforeEach(async (to: EnhancedRouteLocation, _from, next) => {
2726
NProgress.start()

src/types/env.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
declare module '*.vue' {
44
import type { DefineComponent } from 'vue'
55

6-
// eslint-disable-next-line ts/no-empty-object-type
7-
const component: DefineComponent<{}, {}, any>
6+
const component: DefineComponent<Record<string, never>, Record<string, never>, any>
87
export default component
98
}

0 commit comments

Comments
 (0)