blob: 3231adaa05a0fcb5c9d212df4fc6080dcee8d409 [file] [edit]
'use strict';
const hasBlock = require('./hasBlock');
/**
* @param {import('postcss').AtRule} atRule
* @returns {boolean}
*/
module.exports = function (atRule) {
// @ts-ignore TODO TYPES LESS property variable does not exists in types
return (atRule.type === 'atrule' && atRule.variable && !hasBlock(atRule)) || false;
};