feat(vue): enforce order of define macros (#196)

This commit is contained in:
Kirk Lin
2023-06-06 17:32:33 +08:00
committed by GitHub
parent 4e77637da4
commit f553c519f6

View File

@@ -52,7 +52,7 @@ module.exports = {
'vue/component-options-name-casing': ['error', 'PascalCase'],
'vue/custom-event-name-casing': ['error', 'camelCase'],
'vue/define-macros-order': ['error', {
order: ['defineProps', 'defineEmits'],
order: ['defineOptions', 'defineProps', 'defineEmits', 'defineSlots'],
}],
'vue/html-comment-content-spacing': ['error', 'always', {
exceptions: ['-'],