From f553c519f60b5171232b04afe01f338a1767a295 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Tue, 6 Jun 2023 17:32:33 +0800 Subject: [PATCH] feat(vue): enforce order of define macros (#196) --- packages/eslint-config-vue/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-vue/index.js b/packages/eslint-config-vue/index.js index ae79f1e..9d77ec1 100644 --- a/packages/eslint-config-vue/index.js +++ b/packages/eslint-config-vue/index.js @@ -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: ['-'],