UNPKG

stylelint

Version:

A mighty, modern CSS linter.

12 lines (9 loc) 251 B
/* @flow */ 'use strict'; /** * Check if a rule is a keyframe one */ module.exports = function(rule /*: postcss$rule*/) /*: boolean*/ { const parent = rule.parent; return parent.type === 'atrule' && parent.name.toLowerCase() === 'keyframes'; };