adapt linting of current frontend to new eslint-plugin-vue rules

This commit is contained in:
mahula 2023-12-11 17:15:10 +01:00
parent fc7ff71446
commit 852e97b166
3 changed files with 7 additions and 0 deletions

View File

@ -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'
}],

View File

@ -16,6 +16,7 @@
/>
</slot>
</template>
<!-- eslint-disable-next-line vue/no-useless-template-attributes -->
<template #popover="" class="legend">
<div class="legend-container">
<div class="legend-header">{{ $t(`editor.legend.legendTitle`) }}</div>

View File

@ -57,6 +57,7 @@
</div>
</template>
<!-- eslint-disable vue/no-reserved-component-names -->
<script>
import { isEmpty, toArray } from 'lodash'
import mapboxgl from 'mapbox-gl'
@ -560,6 +561,7 @@ export default {
},
}
</script>
<!-- eslint-enable vue/no-reserved-component-names -->
<style lang="scss">
// description: https: //github.com/geospoc/v-mapbox/tree/v1.11.2/docs