stylelint-scss
Version:
A collection of SCSS specific rules for stylelint
17 lines (16 loc) • 417 B
JavaScript
/**
* 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 (options, exceptionName) {
return (
options
&& options.except
&& options.except.indexOf(exceptionName) !== -1
)
}