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,21 @@
import getPreviousNonSharedLineCommentNode from './getPreviousNonSharedLineCommentNode.mjs';
import hasBlock from './hasBlock.mjs';
import { isAtRule } from './typeGuards.mjs';
/**
* @param {import('postcss').AtRule} atRule
* @returns {boolean}
*/
export default function isBlocklessAtRuleAfterBlocklessAtRule(atRule) {
if (atRule.type !== 'atrule') {
return false;
}
const previousNode = getPreviousNonSharedLineCommentNode(atRule);
if (previousNode === undefined) {
return false;
}
return isAtRule(previousNode) && !hasBlock(previousNode) && !hasBlock(atRule);
}