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

Fix crash in block-no-empty #4110

Merged
merged 2 commits into from Jun 22, 2019

Conversation

ghiculescu
Copy link
Contributor

block-no-empty should allow @import statements, but it's currently crashing with error "Cannot read property 'every' of undefined"

Closes #4109

`block-no-empty` should allow `@import` statements, but it's currently crashing with error "Cannot read property 'every' of undefined"
Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

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

Thank you for a fix! Could you use hasBlock utility instead and return early for check(), please?

Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

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

Thank you!

@hudochenkov hudochenkov merged commit 0bbe61f into stylelint:master Jun 22, 2019
@hudochenkov
Copy link
Member

  • Fixed: block-no-empty crash for @import statements (#4110).

@ghiculescu ghiculescu deleted the hotfix/block-no-empty-crash branch June 22, 2019 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

block-no-empty should allow @import statements
4 participants