-
Notifications
You must be signed in to change notification settings - Fork 348
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
Enforce Pascal casing of component name in template in the docs package #4004
Enforce Pascal casing of component name in template in the docs package #4004
Conversation
I have met the following error when I Here is the error message:
|
Maybe you need to run |
Hi, @m0ksem, it is not working after I |
@asvae, can you check if you have same error? |
Nah, it's all good for me: ➜ 6-vuestic-ui git:(fix/docs-component-name-casing) yarn workspace docs lint --fix
yarn workspace v1.22.19
yarn run v1.22.19
$ eslint --ext .js,.ts,.vue . --fix
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/components/ComponentPlayground.vue
2:10 warning 'ComponentOptions' is defined but never used @typescript-eslint/no-unused-vars
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/composables/useComponentPlayground.ts
65:28 warning 'defaultValue' is defined but never used @typescript-eslint/no-unused-vars
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/layouts/default.vue
45:9 warning 'currentPresetName' is assigned a value but never used @typescript-eslint/no-unused-vars
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/modules/banner/module.ts
23:9 warning 'options' is defined but never used @typescript-eslint/no-unused-vars
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/modules/page-config/blocks/alert/index.vue
4:7 warning 'props' is assigned a value but never used @typescript-eslint/no-unused-vars
/Users/yauheniprakopchyk/2-Projects/7-epicmax/1-epicmax/6-vuestic-ui/packages/docs/modules/page-config/blocks/api/index.vue
90:15 warning 'name' is defined but never used @typescript-eslint/no-unused-vars
103:13 warning 'key' is defined but never used @typescript-eslint/no-unused-vars
136:15 warning 'prop' is defined but never used @typescript-eslint/no-unused-vars
145:82 warning 'comment' is defined but never used @typescript-eslint/no-unused-vars Maybe node version or something? I'm using Also |
It also doesn't appear this PR is fixing the issue. I checked the file I mentioned after lint and there is nothing in the log.
|
I'm thinking an greasy-easy fix for this could be a replacement regex from Linter might be tricky to arrange. |
@asvae, do you mean change by regex replace manually? Does the lint rule I added matters in this case? Should I remove it? |
I think eslint rule is a perfect solution. But we definitely need be able to run eslint on windows. I assume @xiongmao86 what's your node version? I'm wondering how vuestic-ui exports work in such case. |
Hi, @m0ksem, my node version is |
69e8ea2
to
36df497
Compare
This pr is ready for review. |
@m0ksem I'm not sure if we need windows support for development right now. They have wery nice wsl (something I personally used to avoid getting confused on random errors). I'd say we might want to handle that would we have more resources. As you have to pretty much test all scripts to make sure this works. Expanded the topic here - #4029 |
That's a lot of commits. Feels like a lot of effort 🤗. |
I would prefer camelCase for props as well, but vue styleguide disagrees strongly 😞. So kebab in template that is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Make sure docs examples using Pascal case in the example of docs package.
Fix #3989.
Types of changes