Skip to content

Rules

To make navigation easier and open a door for future additions, rules are grouped into categories based on their scope and intended use:

📏 Base
General best practices that are not tied to any particular methodology or preprocessor
no-selectors-in-at-rulesDisallows placing rules (selectors) inside at-rules.
📦 BEM
Rules specific to the BEM methodology
block-variableRequires the component's root selector to define a variable referencing the block name.🔧
match-file-nameRequires the file name to begin with the name of the BEM block it represents.
no-block-propertiesPrevents layout-affecting CSS properties within BEM block selectors.
no-chained-entitiesDisallows splitting BEM entities across multiple chained `&` selectors in SCSS.
no-side-effectsDisallows selectors that apply styles outside the scope of the current BEM block.
selector-patternEnforces naming patterns for BEM entities.
🪄 SASS
Rules focused on SASS/SCSS syntax and features
no-unused-variablesReports SASS variables that are declared but not used.

Released under the MIT License.