UNPKG

@stylistic/stylelint-plugin

Version:
9 lines (8 loc) 306 B
/** * 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 }