-
Notifications
You must be signed in to change notification settings - Fork 48
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
Runtime lint: Warning about class or data-bem in attrs
#349
Conversation
if (attrs.class) { | ||
console.warn( | ||
'\nBEM-XJST WARNING: looks like you try to set HTML class from attrs field in BEMJSON. ' + | ||
'Please you cls() mode for it. See documentation: https://github.com/bem/bem-xjst/blob/master/docs/en/5-templates-syntax.md#cls' + |
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.
you -> use
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.
Fixed
|
||
if (attrs.class) { | ||
console.warn( | ||
'\nBEM-XJST WARNING: looks like you try to set HTML class from attrs field in BEMJSON. ' + |
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.
you're trying
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.
Fixed
|
||
if (attrs['data-bem']) { | ||
console.warn( | ||
'\nBEM-XJST WARNING: looks like you try to set data-bem attribute from attrs field in BEMJSON. ' + |
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.
you're trying
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.
Fixed
if (attrs['data-bem']) { | ||
console.warn( | ||
'\nBEM-XJST WARNING: looks like you try to set data-bem attribute from attrs field in BEMJSON. ' + | ||
'Please you js() mode for it. See documentation: https://github.com/bem/bem-xjst/blob/master/docs/en/5-templates-syntax.md#js' + |
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.
you -> use
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.
Fixed
5f18f48
to
0423826
Compare
0423826
to
9aacd91
Compare
Updated |
Fix for #212