UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

11 lines (10 loc) 240 B
/** * Determine whether the given node is of the given type. * * @param {import('postcss').Node} node * @param {string} type * @return {boolean} */ export default function isType(node, type) { return node && node.type === type; }