From 97d9e2a10951c97782b2fbf3053c5e9ec9bd863c Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 23 Oct 2022 13:02:56 -0800 Subject: [PATCH] chore: lint-and-fix-vue-demi-imports (#1762) * lint for 'vue-demi' imports * fix invalid imports --- frontend/.eslintrc.js | 5 ++++- .../RecipeOcrEditorPageCanvas.vue | 3 +-- .../Domain/Recipe/RecipeOrganizerSelector.vue | 3 +-- .../Domain/Recipe/RecipePage/RecipePage.vue | 12 ++++++++++-- frontend/pages/admin/backups.vue | 3 +-- frontend/pages/admin/maintenance/logs.vue | 3 +-- frontend/pages/group/data/foods.vue | 3 +-- frontend/pages/recipe/create/url.vue | 12 ++++++++++-- 8 files changed, 29 insertions(+), 15 deletions(-) diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 3caa7297..f44d006f 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -52,7 +52,10 @@ module.exports = { "ts-ignore": "allow-with-description", }, ], - "no-restricted-imports": ["error", { paths: ["@vue/reactivity", "@vue/runtime-dom", "@vue/composition-api"] }], + "no-restricted-imports": [ + "error", + { paths: ["@vue/reactivity", "@vue/runtime-dom", "@vue/composition-api", "vue-demi"] }, + ], // TODO Gradually activate all rules "@typescript-eslint/no-unsafe-assignment": "off", diff --git a/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue b/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue index afd6c181..840341b9 100644 --- a/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue +++ b/frontend/components/Domain/Recipe/RecipeOcrEditorPage/RecipeOcrEditorPageParts/RecipeOcrEditorPageCanvas.vue @@ -39,8 +39,7 @@