chore(web stack): add new ESLint Vue rules #2 (#7728)

Add `vue/define-emits-declaration` ESLint rule to ensure consistency in `defineEmits` syntax across the components.

It uses the new Vue 3.3+ more succinct syntax.
This commit is contained in:
Thierry Goettelmann
2024-06-11 09:12:41 +02:00
committed by GitHub
parent 11fbbf5158
commit 1d8385e1f0
20 changed files with 34 additions and 33 deletions

View File

@@ -102,6 +102,7 @@ module.exports = {
'vue/prefer-true-attribute-shorthand': 'error',
'vue/require-macro-variable-name': 'error',
'vue/html-button-has-type': 'error',
'vue/define-emits-declaration': ['error', 'type-literal'],
},
},
{