mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 05:37:16 -04:00
38 lines
966 B
JavaScript
38 lines
966 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.messages = exports.ruleName = undefined;
|
|
|
|
exports.default = function (actual) {
|
|
return function (root, result) {
|
|
var validOptions = _stylelint.utils.validateOptions(result, ruleName, { actual: actual });
|
|
if (!validOptions) {
|
|
return;
|
|
}
|
|
|
|
root.walkAtRules("include", function (decl) {
|
|
if (decl.params.search(/\(\s*?\)\s*?$/) === -1) {
|
|
return;
|
|
}
|
|
|
|
_stylelint.utils.report({
|
|
message: messages.expected,
|
|
node: decl,
|
|
result: result,
|
|
ruleName: ruleName
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
var _stylelint = require("stylelint");
|
|
|
|
var _utils = require("../../utils");
|
|
|
|
var ruleName = exports.ruleName = (0, _utils.namespace)("at-mixin-no-argumentless-call-parentheses");
|
|
|
|
var messages = exports.messages = _stylelint.utils.ruleMessages(ruleName, {
|
|
expected: "Unexpected parentheses in argumentless @mixin call"
|
|
}); |