Skip to content

[Feature Request] new vue/no-unused-components default #1048

@johnleider

Description

@johnleider

This is a Feature Request to update the default value of https://eslint.vuejs.org/rules/no-unused-components.html#vue-no-unused-components . In practice, this is extremely annoying to use when debugging:

<template>
  <div>
    <!-- <my-component></my-component> -->

    <div>...</div>
  </div>
</template>

<script>
  export default {
    components: {
      MyComponent: () => import('./MyComponent'),
    },
  }
</script>

In this example, I'm wanting to test something by commenting out the component. This rules greets me with a black screen preventing me from seeing the app until I additionally comment out the component import.

I'm proposing a new default value of warn. It still promotes the developer to make good decisions, but doesn't get in the way of working.

image

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