RockefellerArchiveCenter / styles

Style Library for the Rockefeller Archive Center
https://styles.rockarch.org
MIT License
0 stars 1 forks source link

stylelint selector class rule prevents BEM naming method #72

Closed HaSistrunk closed 3 years ago

HaSistrunk commented 3 years ago

Describe the bug

Stylelint's selector-class-pattern prevents a BEM selector naming approach because it requires hyphens only.

Example linting error for selector .breadcrumbs__item:

Selector should be written in lowercase with selector-class-pattern hyphens

Additional context

We can adjust the linting rules selector-class-pattern in stylelintrc.json to allow BEM selector naming. We can specify new rules using regex.