mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
adapt linting of current frontend to new eslint-plugin-vue rules
This commit is contained in:
parent
fc7ff71446
commit
852e97b166
@ -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'
|
||||
}],
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user