stylelint
Version:
A mighty, modern CSS linter.
13 lines (10 loc) • 329 B
JavaScript
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;
};
;