Skip to content

tag-attr-order <script lang="ts" setup> vs <script setup lang="ts"> #1970

Open
@mesqueeb

Description

@mesqueeb

Please describe what the rule should do:

I would love some rule that either enforces:

  • <script lang="ts" setup>
  • OR
  • <script setup lang="ts">

Same for:

  • <style lang="sass" scoped>
  • OR
  • <style scoped lang="sass">

I don't mind which one should be the default, as long as we can enforce some kind of consistency.

I don't mind whatever the rule is called. I don't have a good idea of a good name myself XD
maybe something like tag-attr-order but it can be confused with other Vue attr stuff

What category should the rule belong to?

[x] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions