chore: update linter setup + silence bootstrap-vue errors + reactivate needed compat features

This commit is contained in:
axolotle 2024-03-11 14:56:25 +01:00
parent 547d0ed734
commit 796dad8dbe
3 changed files with 36 additions and 6 deletions

View file

@ -5,14 +5,23 @@ module.exports = {
node: true, node: true,
}, },
extends: [ extends: [
'plugin:vue/strongly-recommended', 'plugin:vue/vue3-strongly-recommended',
'eslint:recommended', 'eslint:recommended',
'plugin:prettier/recommended', 'plugin:prettier/recommended',
], ],
rules: { rules: {
'no-unused-vars': [ // 'no-unused-vars': [
'warn', // 'warn',
{ varsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }, // { varsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' },
], // ],
// temp vue3 compat3
'vue/no-v-for-template-key-on-child': 'error',
'vue/no-v-for-template-key': 'off',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
// temp flemme
'vue/require-explicit-emits': 'off',
'vue/require-default-prop': 'off',
'no-unused-vars': 'off',
}, },
} }

View file

@ -57,7 +57,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 }, compatConfig: { MODE: 3, INSTANCE_LISTENERS: false },
name: 'ViewSearch', name: 'ViewSearch',
props: { props: {

View file

@ -20,6 +20,27 @@ app.use(i18n)
configureCompat({ configureCompat({
MODE: 2, MODE: 2,
// warnings we can do something about should be fixed
// next warnings are suppressed because those come from bootstrap-vue (vue2)
INSTANCE_EVENT_EMITTER: 'suppress-warning',
COMPONENT_FUNCTIONAL: 'suppress-warning',
RENDER_FUNCTION: 'suppress-warning',
GLOBAL_EXTEND: 'suppress-warning',
GLOBAL_MOUNT: 'suppress-warning',
WATCH_ARRAY: 'suppress-warning',
GLOBAL_PROTOTYPE: 'suppress-warning',
INSTANCE_SCOPED_SLOTS: 'suppress-warning',
INSTANCE_LISTENERS: 'suppress-warning',
OPTIONS_DATA_MERGE: 'suppress-warning',
OPTIONS_BEFORE_DESTROY: 'suppress-warning',
INSTANCE_ATTRS_CLASS_STYLE: 'suppress-warning',
CUSTOM_DIR: 'suppress-warning',
// TODO
// ATTR_FALSE_VALUE: 'suppress-warning',
// ATTR_ENUMERATED_COERCION
// ATTR_FALSE_VALUE
// COMPONENT_V_MODEL: 'suppress-warning',
// COMPILER_V_BIND_SYNC
}) })
// Styles are imported in `src/App.vue` <style> // Styles are imported in `src/App.vue` <style>