DEV Community

Discussion on: Incremental stylesheet linting with Stylelint and the Nx toolchain

Collapse
 
cjhaviland profile image
CJ Haviland • Edited

Thanks for this article! It helped me out a lot, but I did want to point out your regex expecting your selectors to be "some-thing" rather than expecting a dash OR an underscore. I ended up doing ^([a-z][a-z0-9]*)((-|)[a-z0-9]+)*$.

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

Thanks, CJ 👍