first commit
This commit is contained in:
23
node_modules/stylelint/lib/utils/isKeyframeRule.cjs
generated
vendored
Normal file
23
node_modules/stylelint/lib/utils/isKeyframeRule.cjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user