From 207750774d1bfbdcf48d0a11a351ccdce7fd6a1f Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Mon, 5 Apr 2021 16:35:29 +0800 Subject: [PATCH] :art: improve format --- .prettierrc | 9 ++++ docs/.vuepress/components/Adapter.vue | 58 ++++++++++++----------- docs/.vuepress/components/Bot.vue | 58 ++++++++++++----------- docs/.vuepress/components/Messenger.vue | 20 ++++---- docs/.vuepress/components/Plugin.vue | 58 ++++++++++++----------- docs/.vuepress/components/PublishCard.vue | 18 +++---- docs/.vuepress/components/Store.vue | 18 +++---- docs/guide/creating-a-project.md | 3 +- package.json | 4 +- 9 files changed, 131 insertions(+), 115 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..03175e1c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "tabWidth": 2, + "useTabs": false, + "endOfLine": "lf", + "arrowParens": "always", + "singleQuote": false, + "trailingComma": "es5", + "semi": true +} diff --git a/docs/.vuepress/components/Adapter.vue b/docs/.vuepress/components/Adapter.vue index c6a3f089..0583cdf9 100644 --- a/docs/.vuepress/components/Adapter.vue +++ b/docs/.vuepress/components/Adapter.vue @@ -82,8 +82,8 @@ color="blue darken-1" text @click=" - dialog = false - publishAdapter() + dialog = false; + publishAdapter(); " > 发布 @@ -93,14 +93,16 @@ - - + + + + diff --git a/docs/.vuepress/components/Bot.vue b/docs/.vuepress/components/Bot.vue index 7f85fbb4..c2c943af 100644 --- a/docs/.vuepress/components/Bot.vue +++ b/docs/.vuepress/components/Bot.vue @@ -68,8 +68,8 @@ color="blue darken-1" text @click=" - dialog = false - publishBot() + dialog = false; + publishBot(); " > 发布 @@ -79,14 +79,16 @@ - - - + + + + + diff --git a/docs/.vuepress/components/Messenger.vue b/docs/.vuepress/components/Messenger.vue index 7ff310d3..9e694df2 100644 --- a/docs/.vuepress/components/Messenger.vue +++ b/docs/.vuepress/components/Messenger.vue @@ -128,11 +128,11 @@