stylelint-order
Version:
A collection of order related linting rules for Stylelint.
10 lines (8 loc) • 324 B
JavaScript
// Check whether a property is a CSS property
import { isCustomProperty } from './isCustomProperty.js';
import { isStandardSyntaxProperty } from './isStandardSyntaxProperty.js';
export function isProperty(node) {
return (
node.type === 'decl' && isStandardSyntaxProperty(node.prop) && !isCustomProperty(node.prop)
);
}