first commit

This commit is contained in:
2025-03-07 22:27:18 +08:00
commit 912da26042
4457 changed files with 306818 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import getPreviousNonSharedLineCommentNode from './getPreviousNonSharedLineCommentNode.mjs';
import isCustomProperty from './isCustomProperty.mjs';
import { isDeclaration } from './typeGuards.mjs';
import isStandardSyntaxDeclaration from './isStandardSyntaxDeclaration.mjs';
/**
* @param {import('postcss').Node} node
* @returns {boolean}
*/
export default function isAfterStandardPropertyDeclaration(node) {
const prevNode = getPreviousNonSharedLineCommentNode(node);
return (
prevNode !== undefined &&
isDeclaration(prevNode) &&
isStandardSyntaxDeclaration(prevNode) &&
!isCustomProperty(prevNode.prop || '')
);
}