UNPKG

stylelint

Version:

A mighty, modern CSS linter.

14 lines (11 loc) 272 B
'use strict'; /** * Check if a rule is a keyframe one * * @param {import('postcss').Rule} rule * @returns {boolean} */ module.exports = function (rule) { const parent = rule.parent; return parent.type === 'atrule' && parent.name.toLowerCase() === 'keyframes'; };