rrd108 / vue-mess-detector

A static code analysis tool for detecting code smells and best practice violations in Vue.js and Nuxt.js projects
MIT License
188 stars 6 forks source link

add rule (vue-recommended): Element attribute order #39

Closed rrd108 closed 2 months ago

rrd108 commented 3 months ago

https://vuejs.org/style-guide/rules-recommended.html#element-attribute-order

David-Pena commented 2 months ago

Hi @rrd108 should we check for non recommended combination of attributes? like v-if and v-for in the same element? or its not included in the scope of this rule? and can that be another rule?

rrd108 commented 2 months ago

v-if with v-for is already implemented (https://github.com/rrd108/vue-mess-detector/blob/main/src/rules/vue-essential/vifWithVfor.ts), as it is one of the vue-essential ruleset

David-Pena commented 2 months ago

I created a PR for this #92