Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Allow hyphenated BEM in CSS #79
The GOV.UK Frontend alpha uses a BEM convention:
This convention encourages isolation within components.
GOV.UK Publishing Frontend (www.gov.uk) are writing components that conform to this convention. Components should be easily movable/promotable to GOV.UK Frontend when appropriate.
In February we decided not to do this here, most of those concerns have since been addressed:
* An extension of our original rules, hyphenated classes are still ok * Allows underscores in BEM classes only * Specifics of what is/is not allowed here: https://github.com/brigade/scss-lint/blob/d8645c43c85bae837e283b498c39af63575c8a82/spec/scss_lint/linter/selector_format_spec.rb#L539-L630