Skip to content

Conversation

@jednano
Copy link

@jednano jednano commented Jun 19, 2015

In reference to #55 (comment):

@MoOx you're right! I was getting warnings like this:

page2.css postcss-bem-linter: styles\blocks\block-bar.css:11:5: Invalid component
selector ".block-bar__element" [cssnext]

But this PR gives me much better warnings, like the following:

page2.css
11:5    Invalid component selector ".block-bar__element" [postcss-bem-linter]

Not quite sure how to add the proper tests, but I thought you could at least use a little help here.

index.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

what about just doing result.messages = result.messages.concat(newResult.messages) instead of this big loop ?

Copy link
Author

Choose a reason for hiding this comment

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

That works!

MoOx added a commit that referenced this pull request Jun 21, 2015
@MoOx MoOx merged commit 466ce1f into postcss:master Jun 21, 2015
@jednano jednano deleted the fix-warnings branch June 21, 2015 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants