diff --git a/.eslintrc.js b/.eslintrc.js index 20d6d310..a522bc99 100755 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,6 +28,5 @@ module.exports = { tuples: 'always-multiline', }], '@typescript-eslint/no-namespace': 'off', - '@typescript-eslint/consistent-type-imports': 'off', }, } diff --git a/src/common/utils/guards.ts b/src/common/utils/guards.ts index 440b3c3b..61090e65 100644 --- a/src/common/utils/guards.ts +++ b/src/common/utils/guards.ts @@ -1,4 +1,5 @@ -import { BeatmapSource, Beatmapset } from '~/def/beatmap' +import type { Beatmapset } from '~/def/beatmap' +import { BeatmapSource } from '~/def/beatmap' export function isString(input: unknown): input is string { return typeof input === 'string' diff --git a/src/common/utils/map.ts b/src/common/utils/map.ts index 4b3e4ca2..e9715edb 100644 --- a/src/common/utils/map.ts +++ b/src/common/utils/map.ts @@ -1,7 +1,9 @@ -import { +import type { BeatmapSource, BeatmapWithMeta, NormalBeatmapWithMeta, +} from '~/def/beatmap' +import { RankingStatus, } from '~/def/beatmap' diff --git a/src/common/utils/privilege.ts b/src/common/utils/privilege.ts index 60582484..6cf84faa 100644 --- a/src/common/utils/privilege.ts +++ b/src/common/utils/privilege.ts @@ -1,4 +1,5 @@ -import { UserEssential, UserPrivilege } from '~/def/user' +import type { UserEssential } from '~/def/user' +import { UserPrivilege } from '~/def/user' export function calcUserPrivilege(user: UserEssential) { const admin = user.roles.includes(UserPrivilege.Admin) diff --git a/src/components/T/responsive-modal.client.vue b/src/components/T/responsive-modal.client.vue index 105cc809..e516be67 100644 --- a/src/components/T/responsive-modal.client.vue +++ b/src/components/T/responsive-modal.client.vue @@ -1,5 +1,5 @@ diff --git a/src/components/app/score-list-item.vue b/src/components/app/score-list-item.vue index 998997dc..b183940e 100644 --- a/src/components/app/score-list-item.vue +++ b/src/components/app/score-list-item.vue @@ -1,5 +1,6 @@