eslint-plugin-vue
eslint-plugin-vue copied to clipboard
Add block-attributes-order rule
Fixes #1970
@Kingwl thanks for the PR!
is the default order going to be
<script setup lang="ts"></script>
OR
<script lang="ts" setup></script>
it's hard to tell from the PR markdown file alone.
PS: I think the former is better for consistency with official Vue documentation
Added the default orders into markdown.
AFAIK, there's no official Vue recommended block attributes order.
@sodatea Any suggestions?
@Kingwl https://vuejs.org/guide/typescript/composition-api.html
Official Vue docs use <script setup lang="ts">
So I think having the same default as that seems best : )
Done.
And make style block has xxx yyy lang src order too (for the consistency).
I've been very busy lately with non-volunteer work. I haven't been able to check the latest changes for this PR yet. Status is always as you can see in PR. Please refrain from comments asking about progress.
@Kingwl friendly bump : )
Hey there, would be great to have this rule 👍 Happy to help! I can also come up with a new pull request if that is preferred.
From our side, a new PR replacing this one would be fine.
I'll close this for now as it seems abandoned and there are already some merge conflicts. Feel free to open another PR :slightly_smiling_face:
@paescuj this is your chance! :wink: