Skip to content

Rule suggestion: add fixer to require-name-property rule #2033

Closed
@small-tou

Description

@small-tou

What rule do you want to change?

require-name-property

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

no

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

add fixer

Please provide some example code that this change will affect:

if the component code is like this, and the component filename is ./DemoComponent.vue

export default defineComponent({
    components: { },
    setup() {
      return {
      };
    },
});

What does the rule currently do for this code?

add name property to component.

What will the rule do after it's changed?

export default defineComponent({
    name:'DemoComponent',
    components: { },
    setup() {
      return {
      };
    },
});

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