Files
szjs/node_modules/stylelint/lib/utils/isStandardSyntaxComment.mjs

14 lines
374 B
JavaScript
Raw Normal View History

2025-03-07 22:27:18 +08:00
/**
* @param {import('postcss').Comment} comment
* @returns {boolean}
*/
export default function isStandardSyntaxComment(comment) {
// We check both here because the Sass parser uses `raws.inline` to indicate
// inline comments, while the Less parser uses `inline`.
if ('inline' in comment) return false;
if ('inline' in comment.raws) return false;
return true;
}