epiphany/node_modules/stylelint-order/utils/isProperty.js
2023-12-09 22:48:07 -08:00

9 lines
331 B
JavaScript

// Check whether a property is a CSS property
const isCustomProperty = require('./isCustomProperty');
const isStandardSyntaxProperty = require('./isStandardSyntaxProperty');
module.exports = function isProperty(node) {
return (
node.type === 'decl' && isStandardSyntaxProperty(node.prop) && !isCustomProperty(node.prop)
);
};