UNPKG

stylelint-selector-no-utility

Version:

Stylelint rule that doesn't allow the styling of utility classes in CSS

6 lines (4 loc) 145 B
const UTILITY_CLASS_PATTERN = /\.[-\w]+/g module.exports = function matchUtilities(selector) { return selector.match(UTILITY_CLASS_PATTERN) }