UNPKG

stylelint-scss

Version:

A collection of SCSS specific rules for stylelint

14 lines (11 loc) 301 B
/** * Check whether a selector is standard * * @param {string} selector * @return {boolean} If `true`, the selector is standard */ export default function (selector) { // SCSS or Less interpolation if (/#{.+?}|@{.+?}|\$\(.+?\)/.test(selector)) { return false } return true }