UNPKG

stylelint-sassdoc

Version:

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

12 lines (10 loc) 415 B
const getSourceArray = require('./getSourceArray'); /** Gets the actual string of the node. Useful to use regEx, * or check which type of comment was found by postCSS. * @param {Node} node - the current root node * @return {String} source - the actual text of the node */ module.exports = function nodeToString(node) { const source = getSourceArray(node); return source[node.source.start.line - 1]; };