more eslint rules (some not included in recommended)
This commit is contained in:
parent
454befaa24
commit
999f6d1899
10
.eslintrc.js
10
.eslintrc.js
@ -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',
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user