mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-29 10:00:49 +08:00
19 lines
632 B
JavaScript
19 lines
632 B
JavaScript
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 || '')
|
|
);
|
|
}
|