Skip to content

📎 Implement useVueDefineMacrosOrder #7345

@minht11

Description

@minht11

Description

Implement vue setup script lint rule which checks that specified macros are defined first.

const message = ref()
defineProps() // defineProps should go first

This won't be restricted to builtin macros, because external libraries like unplugin-vue-router also provider their own.

https://eslint.vuejs.org/rules/define-macros-order

Metadata

Metadata

Assignees

Labels

A-LinterArea: linterD-VueDomains: VueL-JavaScriptLanguage: JavaScript and super languagesS-FeatureStatus: new feature to implement

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions