From e06f3d2ee510e748b43fff5996f549b493644cad Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 29 May 2023 18:58:53 +0200 Subject: [PATCH] Enable `vue/html-closing-bracket-spacing` eslint rule (#24987) Enable [`vue/html-closing-bracket-spacing`](https://eslint.vuejs.org/rules/html-closing-bracket-spacing.html) and set it to never add any useless spaces inside tags. All issues were fixed automatically with `make lint-js-fix`. --- web_src/js/components/.eslintrc.yaml | 2 +- web_src/js/components/ActionRunStatus.vue | 2 +- web_src/js/components/ContextPopup.vue | 2 +- web_src/js/components/DiffFileList.vue | 2 +- web_src/js/components/PullRequestMergeForm.vue | 2 +- web_src/js/components/RepoActionView.vue | 2 +- web_src/js/components/RepoBranchTagSelector.vue | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web_src/js/components/.eslintrc.yaml b/web_src/js/components/.eslintrc.yaml index 4cc65edea9..e721ff50a9 100644 --- a/web_src/js/components/.eslintrc.yaml +++ b/web_src/js/components/.eslintrc.yaml @@ -10,5 +10,5 @@ env: rules: vue/attributes-order: [0] - vue/html-closing-bracket-spacing: [0] + vue/html-closing-bracket-spacing: [2, {startTag: never, endTag: never, selfClosingTag: never}] vue/max-attributes-per-line: [0] diff --git a/web_src/js/components/ActionRunStatus.vue b/web_src/js/components/ActionRunStatus.vue index bddf307a1b..1955decc1e 100644 --- a/web_src/js/components/ActionRunStatus.vue +++ b/web_src/js/components/ActionRunStatus.vue @@ -9,7 +9,7 @@ - + diff --git a/web_src/js/components/ContextPopup.vue b/web_src/js/components/ContextPopup.vue index bef9b7a6f3..420c271fcc 100644 --- a/web_src/js/components/ContextPopup.vue +++ b/web_src/js/components/ContextPopup.vue @@ -3,7 +3,7 @@

{{ issue.repository.full_name }} on {{ createdAt }}

-

{{ issue.title }} #{{ issue.number }}

+

{{ issue.title }} #{{ issue.number }}

{{ body }}

{{ binaryFileMessage }} {{ file.IsBin ? '' : file.Addition + file.Deletion }} -
+
diff --git a/web_src/js/components/PullRequestMergeForm.vue b/web_src/js/components/PullRequestMergeForm.vue index 4d8c14a76d..d6ddbef817 100644 --- a/web_src/js/components/PullRequestMergeForm.vue +++ b/web_src/js/components/PullRequestMergeForm.vue @@ -62,7 +62,7 @@
-
+