UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

10 lines (8 loc) 210 B
/** * @param {import('postcss').Declaration} decl * @returns {string} */ export default function getDeclarationValue(decl) { const raws = decl.raws; return (raws.value && raws.value.raw) || decl.value; }