Skip to content
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

Merged
merged 1 commit into from
Sep 21, 2016

Conversation

miripiruni
Copy link
Contributor

Fix for #212

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage remained the same at 96.958% when pulling a53ac6b on issue-212__attrs-runtime-lint into b2f14b7 on master.

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' +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you -> use

Copy link
Contributor Author

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. ' +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're trying

Copy link
Contributor Author

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. ' +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're trying

Copy link
Contributor Author

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' +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you -> use

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@miripiruni miripiruni force-pushed the issue-212__attrs-runtime-lint branch 2 times, most recently from 5f18f48 to 0423826 Compare September 20, 2016 17:30
@miripiruni
Copy link
Contributor Author

Updated

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage remained the same at 96.958% when pulling 9aacd91 on issue-212__attrs-runtime-lint into b2f14b7 on master.

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage remained the same at 96.958% when pulling 9aacd91 on issue-212__attrs-runtime-lint into b2f14b7 on master.

@miripiruni miripiruni added this to the 7.3.0 milestone Sep 21, 2016
@miripiruni miripiruni merged commit 6a9625d into master Sep 21, 2016
@miripiruni miripiruni deleted the issue-212__attrs-runtime-lint branch September 21, 2016 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants