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

17
node_modules/stylelint/lib/utils/isFirstNodeOfRoot.mjs generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import { isRoot } from './typeGuards.mjs';
/**
* @param {import('postcss').Node} node
* @returns {boolean}
*/
export default function isFirstNodeOfRoot(node) {
if (isRoot(node)) return false;
const parentNode = node.parent;
if (!parentNode) {
return false;
}
return isRoot(parentNode) && node === parentNode.first;
}