From 7f97dd2f5a28ec6b53bac82a8f7fb7f206287c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sun, 3 Jul 2022 14:52:49 +0800 Subject: [PATCH] style: update prettier format rules --- prettier.config.js | 1 + src/components/common/ScrollX.vue | 3 +-- src/layout/components/sidebar/components/SideMenu.vue | 3 +-- src/layout/components/tags/ContextMenu.vue | 3 +-- src/layout/components/tags/index.vue | 6 ++---- src/layout/index.vue | 6 ++---- src/views/dashboard/index.vue | 3 +-- src/views/examples/table/post/PostCreate.vue | 3 +-- src/views/examples/table/post/index.vue | 3 +-- src/views/login/index.vue | 6 ++---- 10 files changed, 13 insertions(+), 24 deletions(-) diff --git a/prettier.config.js b/prettier.config.js index c1f27e5..30c5f18 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -3,4 +3,5 @@ module.exports = { singleQuote: true, semi: false, endOfLine: 'lf', + bracketSameLine: true, } diff --git a/src/components/common/ScrollX.vue b/src/components/common/ScrollX.vue index 4956b38..8f905ab 100644 --- a/src/components/common/ScrollX.vue +++ b/src/components/common/ScrollX.vue @@ -16,8 +16,7 @@ :style="{ height: height + 'px', transform: `translateX(${translateX}px)`, - }" - > + }"> diff --git a/src/layout/components/sidebar/components/SideMenu.vue b/src/layout/components/sidebar/components/SideMenu.vue index 4347688..21f237e 100644 --- a/src/layout/components/sidebar/components/SideMenu.vue +++ b/src/layout/components/sidebar/components/SideMenu.vue @@ -7,8 +7,7 @@ :collapsed-width="64" :options="menuOptions" :value="(currentRoute.meta && currentRoute.meta.activeMenu) || currentRoute.name" - @update:value="handleMenuSelect" - /> + @update:value="handleMenuSelect" />