more eslint rules (some not included in recommended)

This commit is contained in:
Ali Gator 2022-12-01 12:02:42 +01:00
parent 454befaa24
commit 999f6d1899

View File

@ -6,11 +6,21 @@ module.exports = {
extends: [ extends: [
// add more generic rulesets here, such as: // add more generic rulesets here, such as:
"eslint:recommended", "eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-strongly-recommended",
"plugin:vue/vue3-recommended", "plugin:vue/vue3-recommended",
"prettier", "prettier",
], ],
rules: { rules: {
// override/add rules settings here, such as: // override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error' // 'vue/no-unused-vars': 'error'
'vue/match-component-import-name': 'warn',
'vue/no-ref-object-destructure': 'warn',
'vue/no-required-prop-with-default': 'warn',
'vue/no-restricted-class': 'warn',
'vue/no-template-target-blank' : 'warn',
'vue/no-this-in-before-route-enter' : 'warn',
'vue/prefer-prop-type-boolean-first' : 'warn',
}, },
}; };