@udyux/stylelint-order
Version:
[fork] A collection of order related linting rules for stylelint.
10 lines (8 loc) • 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)
);
};