stylelint-scss
Version:
A collection of SCSS specific rules for stylelint
17 lines (16 loc) • 411 B
JavaScript
/**
* Check if an options object contains a certain `ignore` keyword.
* It will look for an `ignore` property whose value should
* be an array of keywords.
*
* @param {object} options
* @param {string} ignoredName
* @return {boolean}
*/
export default function (options, ignoredName) {
return (
options
&& options.ignore
&& options.ignore.indexOf(ignoredName) !== -1
)
}