postcss / postcss-bem-linter

A BEM linter for postcss
MIT License
572 stars 35 forks source link

:nth-child(3n+1) marked as "Invalid component selector" (BEM) #73

Closed marienvo closed 9 years ago

marienvo commented 9 years ago

This selector does not seem to be valid:

.home__services-item:nth-child(3n+1)

While this one does:

.home__services-item:nth-child(3n)

I think they should be validated the same. I'm getting this error: Invalid component selector ".home__services-item:nth-child(3n+1)" [postcss-bem-linter]

davidtheclark commented 9 years ago

Nice catch ... I believe I see the bug. Will fix sometime today.

davidtheclark commented 9 years ago

Fix released in 2.2.0.