Replies: 1 comment 3 replies
-
Hey! If using that lint plugin is important for your team I would just alias the components when importing. We often alias Headless UI imports in our project as |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been doing some ESLint setup on an existing project and am getting errors on some of the HeadlessUI components.
Some examples
This is quite interesting; while it's okay for me to alias the components, it makes copying and using code a bit harder.
Ignoring the linting error also feels a little heavy-handed.EDIT: In fact, it does not even look like you can disable this in
eslint-plugin-vue
https://eslint.vuejs.org/rules/no-reserved-component-names.html
https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-reserved-component-names.js#L114
What do you think the best approach here is?
Beta Was this translation helpful? Give feedback.
All reactions