-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Fix #616 - update max attrs per line error message, remove white spaces #643
Conversation
|
||
if (utils.isBindingAttribute(prop)) { | ||
propType = 'Binding' | ||
propName = prop.key.raw.argument |
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.
argument can be null when v-bind="$props"
and error message is:
Binding "null" should be on a new line.
propName = prop.key.raw.argument | |
propName = prop.key.raw.argument || 'object as props' |
see. https://vuejs.org/v2/guide/components-props.html#Passing-the-Properties-of-an-Object
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.
Good catch! I forgot about this case. I think it should actually report Directive "bind" should be on a new line
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.
thank you 👍
This PR addresses issue #616
[x] Replaces white spaces with new line instead of just adding new line
[x] Improves
binding
error message[x] Improves
event
error message[x] Improves
directive
error message