mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Merge pull request #3491 from Max-F-Helm/more-strict-eslint
feat: eslint rule vue/no-undef-components makes build fail
This commit is contained in:
commit
6043f813da
2 changed files with 6 additions and 0 deletions
|
@ -4,4 +4,9 @@ module.exports = {
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@unocss", "plugin:prettier/recommended"],
|
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"]
|
||||||
|
}],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
</template>
|
</template>
|
||||||
<div v-show="showingReplies" v-if="replies" class="replies">
|
<div v-show="showingReplies" v-if="replies" class="replies">
|
||||||
<div v-for="reply in replies" :key="reply.commentId" class="w-full">
|
<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" />
|
<CommentItem :comment="reply" :uploader="uploader" :video-id="videoId" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="nextpage" class="cursor-pointer" @click="loadReplies">
|
<div v-if="nextpage" class="cursor-pointer" @click="loadReplies">
|
||||||
|
|
Loading…
Reference in a new issue