eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

vue/define-macros-order Ignore TS type sorting

Open honghuangdc opened this issue 1 year ago • 3 comments

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

honghuangdc avatar Jan 25 '24 15:01 honghuangdc