Skip to content

vue/define-macros-order Ignore TS type sorting #2380

@honghuangdc

Description

@honghuangdc

What rule do you want to change?
ignore TS type sorting

Does this change cause the rule to produce more or fewer warnings?

How will the change be implemented? (New option, new default behavior, etc.)?

Please provide some example code that this change will affect:

// the rule will sort the following code

interface Props {
  msg: string;
}

const props = defineProps<Props>();

interface Emits {
  (e: 'update'): void;
}

const emit = defineEmits<Emits>();

// after sorting

const props = defineProps<Props>();

const emit = defineEmits<Emits>();

interface Props {
  msg: string
}

interface Emits {
  (e: 'update'): void;
}

What does the rule currently do for this code?

What will the rule do after it's changed?
ignore sort TS type

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions