Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
small-tou opened this issue Nov 10, 2022 · 0 comments · Fixed by #2034
Closed

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

small-tou opened this issue Nov 10, 2022 · 0 comments · Fixed by #2034

Comments

@small-tou
Copy link
Contributor

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 {
      };
    },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant