UNPKG

stylelint-sassdoc

Version:

stylelint plugin to check scss files for a valid sassdoc documentation Credits to https://github.com/anneangersbach

12 lines (11 loc) 446 B
/** * Checks if there is an empty line between nodes. * @param {Node} node - the current node * @param {Node} adjacentNode = the node next to the current node * @return {boolean} - true if there is no line between both nodes */ module.exports = function checkEmptyLine(node, adjacentNode) { const { line } = node.source.start; const adjacentLine = adjacentNode.source.start.line; return (Math.abs(line - adjacentLine) === 1); };