vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 666 forks source link

autofix for vue/no-empty-component-block #2564

Closed RedBlueKoi closed 2 weeks ago

RedBlueKoi commented 2 months ago

What rule do you want to change?

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:

<script setup lang="ts">
  defineProps<{...}>()
</script>

<template>
  <h1>My awesome title</h1>
</template>

<style scoped lang="postcss"></style>

What does the rule currently do for this code?

What will the rule do after it's changed?

Additional context

FloEdelmann commented 2 months ago

PRs welcome!

RedBlueKoi commented 2 months ago

@FloEdelmann got you, let me see if I can pull it off

RedBlueKoi commented 2 months ago

PRs welcome!

Do you maybe have an example that I can reference?

FloEdelmann commented 2 months ago

Nice! I think vue/block-order might have a similar autofix. Please also add test cases.