@stylistic/stylelint-plugin
Version:
A collection of stylistic/formatting Stylelint rules
9 lines (8 loc) • 306 B
JavaScript
/**
* Checks if a statement has a block (empty or otherwise).
* @param {import('postcss').Container} statement - The PostCSS container node.
* @returns {boolean} True if the `statement` has a block (empty or otherwise).
*/
export function hasBlock (statement) {
return statement.nodes !== undefined
}