mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
chore: update linter setup + silence bootstrap-vue errors + reactivate needed compat features
This commit is contained in:
parent
547d0ed734
commit
796dad8dbe
3 changed files with 36 additions and 6 deletions
|
@ -5,14 +5,23 @@ module.exports = {
|
|||
node: true,
|
||||
},
|
||||
extends: [
|
||||
'plugin:vue/strongly-recommended',
|
||||
'plugin:vue/vue3-strongly-recommended',
|
||||
'eslint:recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
rules: {
|
||||
'no-unused-vars': [
|
||||
'warn',
|
||||
{ varsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' },
|
||||
],
|
||||
// 'no-unused-vars': [
|
||||
// 'warn',
|
||||
// { 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',
|
||||
},
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
compatConfig: { MODE: 3 },
|
||||
compatConfig: { MODE: 3, INSTANCE_LISTENERS: false },
|
||||
name: 'ViewSearch',
|
||||
|
||||
props: {
|
||||
|
|
|
@ -20,6 +20,27 @@ app.use(i18n)
|
|||
|
||||
configureCompat({
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue