From 7f631e88e52410504ba551785d1c4cd33791d347 Mon Sep 17 00:00:00 2001 From: Thierry Date: Mon, 10 Jun 2024 16:31:09 +0200 Subject: [PATCH] disable ESlint rules conflicting with Prettier --- .eslintrc.js | 8 +++--- .../lite/src/components/AppHeader.vue | 9 ++---- .../lite/src/components/AppLogin.vue | 9 ++---- .../src/components/CollectionFilterRow.vue | 4 +-- .../lite/src/components/CollectionTable.vue | 4 +-- .../lite/src/components/NoDataError.vue | 2 +- .../lite/src/components/NoResult.vue | 2 +- .../src/components/PoolOverrideWarning.vue | 2 +- .../component-story/StoryExampleComponent.vue | 4 +-- .../lite/src/components/form/FormCheckbox.vue | 2 +- .../lite/src/components/form/FormInput.vue | 2 +- .../pool/dashboard/PoolDashboardAlarms.vue | 6 ++-- .../src/components/ui/UiCardComingSoon.vue | 2 +- .../lite/src/components/ui/UiSeparator.vue | 2 +- .../lite/src/components/ui/UiStatusPanel.vue | 2 +- .../lite/src/views/ObjectNotFoundView.vue | 2 +- .../lite/src/views/PageNotFoundView.vue | 2 +- .../lite/src/views/settings/SettingsView.vue | 6 ++-- .../src/views/xoa-deploy/XoaDeployView.vue | 28 ++++++------------- @xen-orchestra/web/src/pages/dev/token.vue | 2 +- 20 files changed, 39 insertions(+), 61 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5a2e35e621b..9992685d6bf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -89,13 +89,13 @@ module.exports = { 'vue/attribute-hyphenation': 'error', 'vue/component-definition-name-casing': 'error', 'vue/first-attribute-linebreak': 'error', - 'vue/html-closing-bracket-newline': 'error', + 'vue/html-closing-bracket-newline': 'off', // Conflicts with Prettier 'vue/html-closing-bracket-spacing': 'error', 'vue/html-end-tags': 'error', - 'vue/html-indent': 'error', + 'vue/html-indent': 'off', // Conflicts with Prettier 'vue/html-quotes': 'error', - 'vue/html-self-closing': 'error', - 'vue/max-attributes-per-line': ['error', { singleline: 3, multiline: 1 }], + 'vue/html-self-closing': ['error', { html: { void: 'always', normal: 'always', component: 'always' } }], + 'vue/max-attributes-per-line': 'off', // Conflicts with Prettier 'vue/multiline-html-element-content-newline': 'error', 'vue/mustache-interpolation-spacing': 'error', 'vue/no-multi-spaces': 'error', diff --git a/@xen-orchestra/lite/src/components/AppHeader.vue b/@xen-orchestra/lite/src/components/AppHeader.vue index 4d0c20fef03..ff031223061 100644 --- a/@xen-orchestra/lite/src/components/AppHeader.vue +++ b/@xen-orchestra/lite/src/components/AppHeader.vue @@ -1,13 +1,8 @@