UNPKG

stylelint-scss

Version:

A collection of SCSS-specific rules for Stylelint

12 lines (11 loc) 271 B
/** * Determines whether a given node has nested sibling. * * @param {import('postcss').Node} node * @return {boolean} */ export default function hasNestedSibling(node) { return ( node && node.parent.nodes.some(n => n !== node && n.type === "nesting") ); }