From 26b17e5cf87005751d18e47d6336e53e33b1fc5c Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:21:45 -0600 Subject: [PATCH] use typed imports --- frontend/.eslintrc.js | 1 + frontend/components/App/Header.vue | 2 +- frontend/components/Item/AttachmentsList.vue | 2 +- frontend/components/Item/Card.vue | 2 +- frontend/components/Item/CreateModal.vue | 2 +- frontend/components/Item/View/Selectable.vue | 4 ++-- frontend/components/Item/View/Table.types.ts | 2 +- frontend/components/Item/View/Table.vue | 4 ++-- frontend/components/Label/Chip.vue | 2 +- frontend/components/Location/Card.vue | 2 +- frontend/components/Location/CreateModal.vue | 2 +- frontend/components/Location/Selector.vue | 5 +++-- frontend/components/Location/Tree/Node.vue | 2 +- frontend/components/Location/Tree/Root.vue | 2 +- frontend/components/global/DateTime.vue | 2 +- frontend/components/global/StatCard/StatCard.vue | 2 +- frontend/components/global/Table.vue | 2 +- frontend/composables/use-auth-context.ts | 8 ++++---- frontend/composables/use-confirm.ts | 4 ++-- frontend/composables/use-item-search.ts | 4 ++-- frontend/composables/use-location-helpers.ts | 4 ++-- frontend/composables/use-min-loader.ts | 2 +- frontend/composables/use-preferences.ts | 4 ++-- frontend/composables/use-route-params.ts | 2 +- frontend/composables/use-theme.ts | 4 ++-- frontend/lib/api/__test__/factories/index.ts | 2 +- frontend/lib/api/__test__/test-utils.ts | 2 +- frontend/lib/api/__test__/user/items.test.ts | 4 ++-- frontend/lib/api/__test__/user/labels.test.ts | 4 ++-- frontend/lib/api/__test__/user/locations.test.ts | 4 ++-- frontend/lib/api/__test__/user/stats.test.ts | 2 +- frontend/lib/api/base/base-api.ts | 2 +- frontend/lib/api/classes/actions.ts | 2 +- frontend/lib/api/classes/assets.ts | 4 ++-- frontend/lib/api/classes/group.ts | 2 +- frontend/lib/api/classes/items.ts | 6 +++--- frontend/lib/api/classes/labels.ts | 2 +- frontend/lib/api/classes/locations.ts | 2 +- frontend/lib/api/classes/notifiers.ts | 2 +- frontend/lib/api/classes/stats.ts | 2 +- frontend/lib/api/classes/users.ts | 4 ++-- frontend/lib/api/public.ts | 2 +- frontend/lib/api/user.ts | 2 +- frontend/nuxt.proxyoverride.ts | 6 +++--- frontend/pages/home/statistics.ts | 2 +- frontend/pages/home/table.ts | 2 +- frontend/pages/item/[id]/index.vue | 5 +++-- frontend/pages/item/[id]/index/edit.vue | 2 +- frontend/pages/item/[id]/index/maintenance.vue | 4 ++-- frontend/pages/items.vue | 2 +- frontend/pages/location/[id].vue | 2 +- frontend/pages/profile.vue | 4 ++-- frontend/stores/labels.ts | 2 +- frontend/stores/locations.ts | 4 ++-- 54 files changed, 80 insertions(+), 77 deletions(-) diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index fa57669..c567952 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -25,6 +25,7 @@ module.exports = { "vue/no-setup-props-destructure": 0, "vue/no-multiple-template-root": 0, "vue/no-v-model-argument": 0, + "@typescript-eslint/consistent-type-imports": "error", "@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/no-unused-vars": [ "error", diff --git a/frontend/components/App/Header.vue b/frontend/components/App/Header.vue index 91c2672..b42da7f 100644 --- a/frontend/components/App/Header.vue +++ b/frontend/components/App/Header.vue @@ -1,5 +1,5 @@