eslint-plugin-vue
eslint-plugin-vue copied to clipboard
More configuration options for `vue/no-reserved-component-names`
What rule do you want to change? vue/no-reserved-component-names
Does this change cause the rule to produce more or fewer warnings? Fewer
How will the change be implemented? (New option, new default behavior, etc.)? Change in the existing rule.
Please provide some example code that this change will affect:
export default defineComponent({
components: {
Button,
},
...
});
can be configured to not produce error anymore
What does the rule currently do for this code?
Throws an error when using Button name for component.
What will the rule do after it's changed?
Will not throw an error when using Button name for component. Will still throw an error when using button.
Additional context
Vue seems to be capable to diffrentiate:
buttonfor html tagButtonfor a component Example: https://play.vuejs.org/#eNqNUstOwzAQ/BXjS4pUJQc4lVCJokrAARAgcfGlpNuQ4tiWvS6Vqvw7azt9IFDVW3Zndmc24w2/MSZfeeAjXrrKNgaZA/RmLFTTGm2RbZiFBevYwuqWZUTNdtDEI2rVI3mRyrAtuxJKqEorh6x1NbsOOwbZHUip2bu2cn6WnQtVFkmSxKhAaI2cIVDFWPkRl40RHJZFX0QgqfRAX8T54mABH3J0pL9o6nzptKLzNmFa8Eq3ppFgnww25E/wEYtIwGZk7/sh9tB6GG771SdUX//0l24deoI/W3BgVyD4DsOZrQETPH19hDV978BWz70k9hHwBZyWPnhMtIlXc7J9wItu72MSjarf3HSNoNz2qGA0MLvIF5xSuT1y+t7uRX4Z54Tq6C/uM/3zQk5IL20fBGGtQCFlHhqlkxpZkaj7cH8n2P0AT4TgzA==