stylelint
Version:
A mighty CSS linter that helps you avoid errors and enforce conventions.
24 lines (18 loc) • 533 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
;
const typeGuards = require('./typeGuards.cjs');
/**
* Check if a rule is a keyframe one
*
* @param {import('postcss').Rule} rule
* @returns {boolean}
*/
function isKeyframeRule(rule) {
const parent = rule.parent;
if (!parent) {
return false;
}
return typeGuards.isAtRule(parent) && parent.name.toLowerCase() === 'keyframes';
}
module.exports = isKeyframeRule;