.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / hasEmptyBlock.js
1 /* @flow */
2 "use strict";
3
4 /**
5  * Check if a statement has an empty block.
6  *
7  * @param {Rule|AtRule} statement - postcss rule or at-rule node
8  * @return {boolean} True if the statement has a block and it is empty
9  */
10 module.exports = function(
11   statement /*: postcss$rule | postcss$atRule*/
12 ) /*: boolean*/ {
13   return (
14     statement.nodes !== undefined && statement.nodes.length === 0 // has block
15   ); // and is empty
16 };