fix linting
This commit is contained in:
parent
321850ec20
commit
58358481bc
5 changed files with 12 additions and 12 deletions
12
src/main.ts
12
src/main.ts
|
|
@ -6,7 +6,7 @@ import router from './router'
|
|||
import {error, success} from './message'
|
||||
|
||||
import {formatDate, formatDateShort, formatDateLong, formatDateSince, formatISO} from '@/helpers/time/formatDate'
|
||||
// @ts-ignore
|
||||
|
||||
import {VERSION} from './version.json'
|
||||
|
||||
// Notifications
|
||||
|
|
@ -20,6 +20,14 @@ import {store} from './store'
|
|||
// i18n
|
||||
import {i18n} from './i18n'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
API_URL: string;
|
||||
SENTRY_ENABLED: boolean;
|
||||
SENTRY_DSN: string;
|
||||
}
|
||||
}
|
||||
|
||||
console.info(`Vikunja frontend version ${VERSION}`)
|
||||
|
||||
// Check if we have an api url in local storage and use it if that's the case
|
||||
|
|
@ -87,7 +95,7 @@ app.config.errorHandler = (err, vm, info) => {
|
|||
}
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
app.config.warnHandler = (msg, vm, info) => {
|
||||
app.config.warnHandler = (msg) => {
|
||||
error(msg)
|
||||
throw(msg)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue