Skip to content

Commit

Permalink
fix: lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Oct 12, 2021
1 parent fee9159 commit 0a144b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -22,6 +22,7 @@ module.exports = {
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
'vue/no-v-html': 0,
// allow during development
'no-debugger': allowInDevelopment(),
'no-unused-expressions': allowInDevelopment(),
Expand Down
4 changes: 3 additions & 1 deletion components/CommentBox.vue
Expand Up @@ -17,7 +17,9 @@ export default {
}
},
beforeDestroy() {
this.commentBoxInstance && this.commentBoxInstance.destroy()
if (this.commentBoxInstance) {
this.commentBoxInstance.destroy()
}
},
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion layouts/Pager.vue
Expand Up @@ -11,7 +11,7 @@
<router-link :to="post.path" class="title-link" v-text="post.title" />
<template v-if="post.excerpt">
<div class="excerpt" v-html="post.excerpt"></div>
<div class="read-more" v-if="post.frontmatter.readMore !== false">
<div v-if="post.frontmatter.readMore !== false" class="read-more">
<router-link
:to="post.path"
class="read-more-link"
Expand Down

0 comments on commit 0a144b1

Please sign in to comment.