Skip to content

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

Closed
@RedBlueKoi

Description

@RedBlueKoi

What rule do you want to change?

  • Rule to change is vue/no-empty-component-block

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

  • This change would not change the amount of errors/warnings

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

  • Preferably default behaviour

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?

  • Currently the rule marks the style tag as an error, but you would have to remove it manually

What will the rule do after it's changed?

  • After change eslint will be able to remove the style tag with pnpm eslint --fix

Additional context

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