eslint rule vue/no-undef-components makes build fail

This commit is contained in:
Max-F-Helm 2024-03-20 20:21:16 +01:00
parent 019a88f65a
commit 04c41a4dde
2 changed files with 6 additions and 0 deletions

View file

@ -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"]
}],
},
};

View file

@ -50,6 +50,7 @@
</template>
<div v-show="showingReplies" v-if="replies" class="replies">
<div v-for="reply in replies" :key="reply.commentId" class="w-full">
<!-- eslint-disable-next-line vue/no-undef-components -->
<CommentItem :comment="reply" :uploader="uploader" :video-id="videoId" />
</div>
<div v-if="nextpage" class="cursor-pointer" @click="loadReplies">