stylelint
Version:
Modern CSS linter
14 lines (11 loc) • 307 B
JavaScript
/**
* Check whether a declaration is standard
*
* @param {Decl} postcss declaration node
* @return {boolean} If `true`, the declaration is standard
*/
export default function (decl) {
// Declarations belong in a declaration block
if (decl.parent.type === "root") { return false }
return true
}