From 04c41a4dde23b9085a9f3de2b0c4d5b3e5821649 Mon Sep 17 00:00:00 2001 From: Max-F-Helm Date: Wed, 20 Mar 2024 20:21:16 +0100 Subject: [PATCH] eslint rule vue/no-undef-components makes build fail --- .eslintrc.cjs | 5 +++++ src/components/CommentItem.vue | 1 + 2 files changed, 6 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 10cf2bab..ffc43edd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -4,4 +4,9 @@ module.exports = { node: true, }, extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@unocss", "plugin:prettier/recommended"], + rules: { + "vue/no-undef-components": ["error", { + ignorePatterns: ["router-link", "router-view", "i18n-t", "ErrorHandler"] + }], + }, }; diff --git a/src/components/CommentItem.vue b/src/components/CommentItem.vue index f010a658..fc64be9e 100644 --- a/src/components/CommentItem.vue +++ b/src/components/CommentItem.vue @@ -50,6 +50,7 @@
+