From 852e97b1660dea2ce26bc5a4ae7ea368b6821808 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 11 Dec 2023 17:15:10 +0100 Subject: [PATCH] adapt linting of current frontend to new eslint-plugin-vue rules --- webapp/.eslintrc.js | 4 ++++ webapp/components/Editor/MenuLegend.vue | 1 + webapp/pages/map.vue | 2 ++ 3 files changed, 7 insertions(+) diff --git a/webapp/.eslintrc.js b/webapp/.eslintrc.js index f5aa82c81..513418d4a 100644 --- a/webapp/.eslintrc.js +++ b/webapp/.eslintrc.js @@ -25,6 +25,10 @@ module.exports = { 'no-console': ['error'], 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'vue/component-name-in-template-casing': ['error', 'kebab-case'], + // deactivate Vue3 rules for now, project will be migrated to Vue3 + 'vue/multi-word-component-names': 0, + 'vue/no-mutating-props': 0, + 'vue/no-v-text-v-html-on-component': 0, 'prettier/prettier': ['error', { htmlWhitespaceSensitivity: 'ignore' }], diff --git a/webapp/components/Editor/MenuLegend.vue b/webapp/components/Editor/MenuLegend.vue index 2d897eeb5..95f8597e8 100644 --- a/webapp/components/Editor/MenuLegend.vue +++ b/webapp/components/Editor/MenuLegend.vue @@ -16,6 +16,7 @@ /> + + +