UNPKG

stylelint

Version:
20 lines (15 loc) 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (atRule) { // Ignore scss `@content` inside mixins if (!atRule.nodes && atRule.params === "") { return false; } // Ignore detached ruleset `@detached-ruleset: { background: red; }; .top { @detached-ruleset(); }` if (!atRule.nodes && atRule.raws.afterName === "" && atRule.params[0] === "(") { return false; } return true; };