From 9487e65d09be1550ad033d5a6ec5ab003ba513cc Mon Sep 17 00:00:00 2001 From: fuliqiang <1348994179@qq.com> Date: Mon, 26 Feb 2024 17:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=9B=86=E7=BE=A4=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E4=B8=BB=E6=9C=BA=E5=90=8D=E6=97=B6=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=8C=B9=E9=85=8D+eslint-prettierc=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bigtop-manager-ui/.eslintrc.js | 7 +++ .../components/cluster-create/set-hosts.vue | 9 ++- bigtop-manager-ui/src/utils/array.ts | 59 +++++++++++++++++++ 3 files changed, 72 insertions(+), 3 deletions(-) diff --git a/bigtop-manager-ui/.eslintrc.js b/bigtop-manager-ui/.eslintrc.js index 2be67abe..090d9200 100644 --- a/bigtop-manager-ui/.eslintrc.js +++ b/bigtop-manager-ui/.eslintrc.js @@ -59,6 +59,13 @@ module.exports = { varsIgnorePattern: '^(unused|ignored).*$' } ], + // resolve "[eslint] Delete `CR` [prettier/prettier]"? https://stackoverflow.com/questions/53516594/why-do-i-keep-getting-eslint-delete-cr-prettier-prettier + 'prettier/prettier': [ + 'error', + { + endOfLine: 'auto' + } + ], 'space-before-function-paren': 'off', quotes: ['error', 'single', { avoidEscape: true }], 'comma-dangle': ['error', 'never'], diff --git a/bigtop-manager-ui/src/components/cluster-create/set-hosts.vue b/bigtop-manager-ui/src/components/cluster-create/set-hosts.vue index 71b1a0e1..9e18a4dd 100644 --- a/bigtop-manager-ui/src/components/cluster-create/set-hosts.vue +++ b/bigtop-manager-ui/src/components/cluster-create/set-hosts.vue @@ -1,6 +1,7 @@