UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

13 lines (12 loc) 398 B
/** * Check if an options object contains a certain `except` keyword. * It will look for an `except` property whose value should * be an array of keywords. * * @param {object} options * @param {string} exceptionName * @return {boolean} */ export default function optionsHaveException(options, exceptionName) { return options && options.except && options.except.includes(exceptionName); }