Skip to content

Commit c5932c2

Browse files
committed
fix: update formatting rules
1 parent b797c16 commit c5932c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/codemirror/CodeMirror.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ onMounted(() => {
6565
editor.on('blur', () => {
6666
emit('change', prettier.format(
6767
editor.getValue(),
68-
{ parser: 'html', plugins: [parserBabel, parserHtml] }
68+
{
69+
parser: 'html',
70+
plugins: [parserBabel, parserHtml],
71+
semi: false,
72+
singleQuote: true,
73+
arrowParens: 'avoid',
74+
}
6975
))
7076
})
7177

0 commit comments

Comments
 (0)