From 9080c22d4fbd41b03c03b13703c3d9378e8e6574 Mon Sep 17 00:00:00 2001 From: Pugma Date: Wed, 23 Oct 2024 12:08:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ESLint=20=E3=81=A8=20Prettier=20?= =?UTF-8?q?=E3=81=AE=E7=AB=B6=E5=90=88=E3=82=92=E8=A7=A3=E6=B6=88=E3=81=97?= =?UTF-8?q?=E3=81=9F=20(Prettier=20=E3=81=AB=E5=AF=84=E3=81=9B=E3=81=9F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 3 ++- eslint.config.js | 20 +++++++++++++++++-- src/App.vue | 5 ++++- .../Contest/ContestTeamListItem.vue | 5 ++++- src/components/ContestTeam/MemberListItem.vue | 6 +++++- src/components/Event/HostnameListItem.vue | 6 +++++- src/components/Events/EventList.vue | 6 +++++- src/components/Group/AdminList.vue | 6 +++++- src/components/Group/AdminListItem.vue | 6 +++++- src/components/Group/MemberListItem.vue | 6 +++++- src/components/Groups/GroupList.vue | 6 +++++- src/components/Index/TopSection.vue | 10 ++++++++-- src/components/Layout/BreadCrumbTrail.vue | 11 ++++++++-- src/components/Layout/PageContainer.vue | 5 ++++- src/components/Layout/PageFooter.vue | 5 ++++- src/components/Project/MemberListItem.vue | 6 +++++- src/components/Search/UserListItem.vue | 6 +++++- src/components/UI/AIcon.vue | 7 ++++++- src/components/UI/ExternalLink.vue | 11 ++++++++-- src/components/UI/SearchInput.vue | 6 +++++- src/components/User/AccountList.vue | 6 +++++- src/components/User/AccountListItem.vue | 6 +++++- src/components/User/ContestsContainer.vue | 11 ++++++++-- src/components/User/EventsContainer.vue | 5 ++++- src/components/User/ProjectsContainer.vue | 5 ++++- src/components/User/UserDetailContainer.vue | 6 +++++- src/pages/GroupPage.vue | 5 ++++- src/pages/IndexPage.vue | 12 +++++++++-- src/pages/ProjectPage.vue | 5 ++++- 29 files changed, 168 insertions(+), 35 deletions(-) diff --git a/.prettierrc b/.prettierrc index 138fb61..43e902d 100644 --- a/.prettierrc +++ b/.prettierrc @@ -17,5 +17,6 @@ "proseWrap": "preserve", "htmlWhitespaceSensitivity": "css", "vueIndentScriptAndStyle": false, - "endOfLine": "auto" + "endOfLine": "auto", + "singleAttributePerLine": true } diff --git a/eslint.config.js b/eslint.config.js index dcea620..ef93cce 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -15,7 +15,7 @@ const vueLint = { files: ['*.vue', '**/*.vue'], languageOptions: { parserOptions: { - parser: "@typescript-eslint/parser" + parser: '@typescript-eslint/parser' } }, rules: { @@ -30,7 +30,23 @@ const vueLint = { } ], - 'vue/custom-event-name-casing': ['error', 'camelCase'] + 'vue/custom-event-name-casing': ['error', 'camelCase'], + + 'vue/html-self-closing': [ + 'error', + { + html: { + void: 'always', + normal: 'always', + component: 'always' + }, + svg: 'always', + math: 'always' + } + ], + + 'vue/singleline-html-element-content-newline': ['off'], + 'vue/html-indent': ['off'] } } diff --git a/src/App.vue b/src/App.vue index dda09c7..ceeaa0d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,10 @@ import PageFooter from '/@/components/Layout/PageFooter.vue'