From 272b81f6e892cbab3b35f0c16171ad4fa1ffd8d4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Jun 2022 21:46:15 +0900 Subject: [PATCH] lint fixes --- packages/client/src/components/mfm.ts | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts index 4556a82d5..f7dbca0d3 100644 --- a/packages/client/src/components/mfm.ts +++ b/packages/client/src/components/mfm.ts @@ -17,30 +17,30 @@ export default defineComponent({ props: { text: { type: String, - required: true + required: true, }, plain: { type: Boolean, - default: false + default: false, }, nowrap: { type: Boolean, - default: false + default: false, }, author: { type: Object, - default: null + default: null, }, i: { type: Object, - default: null + default: null, }, customEmojis: { required: false, }, isNote: { type: Boolean, - default: true + default: true, }, }, @@ -82,7 +82,7 @@ export default defineComponent({ case 'italic': { return h('i', { - style: 'font-style: oblique;' + style: 'font-style: oblique;', }, genEl(token.children)); } @@ -201,13 +201,13 @@ export default defineComponent({ case 'small': { return [h('small', { - style: 'opacity: 0.7;' + style: 'opacity: 0.7;', }, genEl(token.children))]; } case 'center': { return [h('div', { - style: 'text-align:center;' + style: 'text-align:center;', }, genEl(token.children))]; } @@ -231,7 +231,7 @@ export default defineComponent({ return [h(MkMention, { key: Math.random(), host: (token.props.host == null && this.author && this.author.host != null ? this.author.host : token.props.host) || host, - username: token.props.username + username: token.props.username, })]; } @@ -239,7 +239,7 @@ export default defineComponent({ return [h(MkA, { key: Math.random(), to: this.isNote ? `/tags/${encodeURIComponent(token.props.hashtag)}` : `/explore/tags/${encodeURIComponent(token.props.hashtag)}`, - style: 'color:var(--hashtag);' + style: 'color:var(--hashtag);', }, `#${token.props.hashtag}`)]; } @@ -255,18 +255,18 @@ export default defineComponent({ return [h(MkCode, { key: Math.random(), code: token.props.code, - inline: true + inline: true, })]; } case 'quote': { if (!this.nowrap) { return [h('div', { - class: 'quote' + class: 'quote', }, genEl(token.children))]; } else { return [h('span', { - class: 'quote' + class: 'quote', }, genEl(token.children))]; } } @@ -276,7 +276,7 @@ export default defineComponent({ key: Math.random(), emoji: `:${token.props.name}:`, customEmojis: this.customEmojis, - normal: this.plain + normal: this.plain, })]; } @@ -285,7 +285,7 @@ export default defineComponent({ key: Math.random(), emoji: token.props.emoji, customEmojis: this.customEmojis, - normal: this.plain + normal: this.plain, })]; } @@ -293,7 +293,7 @@ export default defineComponent({ return [h(MkFormula, { key: Math.random(), formula: token.props.formula, - block: false + block: false, })]; } @@ -301,14 +301,14 @@ export default defineComponent({ return [h(MkFormula, { key: Math.random(), formula: token.props.formula, - block: true + block: true, })]; } case 'search': { return [h(MkGoogle, { key: Math.random(), - q: token.props.query + q: token.props.query, })]; } @@ -322,5 +322,5 @@ export default defineComponent({ // Parse ast to DOM return h('span', genEl(ast)); - } + }, });