You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running npm run lint, I get an error with the `vue/multi-word-component-names` rule:
error: Component name "/var/www/sites/testya/src/app" should always be multi-word (vue/multi-word-component-names) at src/app.vue:1:1:
I've noticed that if I copy the repository to another directory that has a hyphen, the rule doesn't error:
e.g. running
#mv testya another-hyphen-folder
then running eslint again results in no error.
Seems like the rule is triggering on the filepath of the component, and not just the filename.
What did you expect to happen?
Not error. Or at a minimum, not have the error based on just if an upstream folder has a hyphen
What actually happened?
error: Component name "/var/www/testya/src/app" should always be multi-word (vue/multi-word-component-names) at src/app.vue:1:1:
> 1 | <script>
| ^
2 | import '@/assets/scss/bootstrap.scss';
3 | import updateSw from './mixins/update-sw';
4 |
Repository to reproduce this issue
Not sure how to make a repository with this as a build step, but I can try later when I have more time if needed
The text was updated successfully, but these errors were encountered:
@ota-meshi - We have the issue that the component name error404 is also being caught by this same linting error, when I don't believe it shouldn't. Should I start a new issue?
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
Not error. Or at a minimum, not have the error based on just if an upstream folder has a hyphen
What actually happened?
Repository to reproduce this issue
Not sure how to make a repository with this as a build step, but I can try later when I have more time if needed
The text was updated successfully, but these errors were encountered: