From a5c7458904e691af973deed81f4208ec51717de4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 24 Jun 2021 14:43:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9eslint=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.eslintrc.js | 5 ++++- frontend/src/components/DeDrag/index.vue | 18 +++++++++++------- .../SubjectSetting/PanelStyle/ComponentGap.vue | 1 + frontend/src/views/panel/panel.js | 3 +++ .../panel/template/component/TemplateItem.vue | 1 + .../views/system/authority/authQuickConfig.vue | 1 + frontend/src/views/system/authority/index.vue | 1 + 7 files changed, 22 insertions(+), 8 deletions(-) diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 0952760757..3240d4bf56 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -195,6 +195,9 @@ module.exports = { 'object-curly-spacing': [2, 'always', { objectsInObjects: false }], - 'array-bracket-spacing': [2, 'never'] + 'array-bracket-spacing': [2, 'never'], + "vue/no-use-v-if-with-v-for": ["error", { + "allowUsingIterationVar": true + }] } } diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 51c9a25cd5..9b1ad5959f 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -20,14 +20,14 @@ @mouseleave="leave" >
- +
@@ -282,14 +282,17 @@ export default { type: String, default: 'mouseOn' }, + // eslint-disable-next-line vue/require-default-prop element: { require: true, type: Object }, + // eslint-disable-next-line vue/require-default-prop defaultStyle: { require: true, type: Object }, + // eslint-disable-next-line vue/require-default-prop index: { require: true, type: [Number, String] @@ -299,6 +302,7 @@ export default { type: Boolean, default: true }, + // eslint-disable-next-line vue/require-default-prop changeStyle: { require: true, type: Object diff --git a/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue b/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue index 31753bb155..34dddcece0 100644 --- a/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue +++ b/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue @@ -17,6 +17,7 @@