UNPKG

stylelint

Version:

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

11 lines (9 loc) • 282 B
/** * @param {import('postcss').Declaration} decl * @returns {string} */ export default function getDeclarationValue(decl) { const raw = decl.raws.value; // PostCSS ignores the raw once a new value is assigned return raw && raw.value === decl.value ? raw.raw : decl.value; }