From 9541bc7982cd01ff14b64ac6d6282c6b0e5bea9f Mon Sep 17 00:00:00 2001 From: crazywoola Date: Tue, 13 Jun 2023 11:04:07 +0800 Subject: [PATCH] feat: update prettier --- .prettierrc.js | 5 +++-- components/chat-bubble/index.tsx | 13 +++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index 869fa46..38d98cb 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,12 +1,13 @@ const config = { semi: false, tabWidth: 2, - printWidth: 120, + printWidth: 80, singleQuote: true, jsxSingleQuote: true, trailingComma: 'none', arrowParens: 'always', - endOfLine: 'auto' + endOfLine: 'auto', + noBracketSpacing: true } module.exports = config diff --git a/components/chat-bubble/index.tsx b/components/chat-bubble/index.tsx index a0a8f6c..3135c39 100644 --- a/components/chat-bubble/index.tsx +++ b/components/chat-bubble/index.tsx @@ -10,9 +10,18 @@ interface ChatBubbleProps { mine?: boolean } -const ChatBubble: FC = ({ opening_statement, content, mine = false }) => { +const ChatBubble: FC = ({ + opening_statement, + content, + mine = false +}) => { return ( -
+
{opening_statement &&
{opening_statement}
}
{content}