securityos/node_modules/stylelint/lib/utils/getRuleSelector.js

12 lines
242 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* @param {import('postcss').Rule} ruleNode
* @returns {string}
*/
module.exports = function getRuleSelector(ruleNode) {
const raws = ruleNode.raws;
return (raws.selector && raws.selector.raw) || ruleNode.selector;
};