-
Notifications
You must be signed in to change notification settings - Fork 103
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
chore: fix unchanged files with check annotations #390
base: master
Are you sure you want to change the base?
chore: fix unchanged files with check annotations #390
Conversation
…angular and react, plus another 'titleText' name in angular)
|
||
const props = withDefaults( | ||
defineProps<{ | ||
icon: string, | ||
tone?: 'warning' | 'info', | ||
title? : string, | ||
tone?: 'warning' | 'info', // eslint-disable-line vue/require-default-prop |
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.
may be better to add default value?
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.
I thought about this... The tone
prop is optional in all frameworks, but gha / eslint check complains against vue only. There is code (again, for all frameworks) that checks against truthy value:
https://github.com/DevExpress/devextreme-ui-template-gallery/blob/master/packages/vue/src/components/library/ticker-card.vue#L53
Specifying a default value may affect the prop non specified behavior.
At the same time. adding smth like | undefined
(see a prev commit), does not suppress a warn.
https://github.com/search?q=repo%3ADevExpress%2Fdevextreme-ui-template-gallery+%3Cticker-card+path%3A*.vue&type=code
What to choose then?
No description provided.