mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-13 05:13:33 -06:00
Initial commit
This commit is contained in:
43
node_modules/stylelint-scss/dist/rules/dollar-variable-colon-space-before/index.js
generated
vendored
Normal file
43
node_modules/stylelint-scss/dist/rules/dollar-variable-colon-space-before/index.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.messages = exports.ruleName = undefined;
|
||||
|
||||
exports.default = function (expectation) {
|
||||
var checker = (0, _utils.whitespaceChecker)("space", expectation, messages);
|
||||
return function (root, result) {
|
||||
var validOptions = _stylelint.utils.validateOptions(result, ruleName, {
|
||||
actual: expectation,
|
||||
possible: ["always", "never"]
|
||||
});
|
||||
if (!validOptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
(0, _dollarVariableColonSpaceAfter.variableColonSpaceChecker)({
|
||||
root: root,
|
||||
result: result,
|
||||
locationChecker: checker.before,
|
||||
checkedRuleName: ruleName
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
var _utils = require("../../utils");
|
||||
|
||||
var _stylelint = require("stylelint");
|
||||
|
||||
var _dollarVariableColonSpaceAfter = require("../dollar-variable-colon-space-after");
|
||||
|
||||
var ruleName = exports.ruleName = (0, _utils.namespace)("dollar-variable-colon-space-before");
|
||||
|
||||
var messages = exports.messages = _stylelint.utils.ruleMessages(ruleName, {
|
||||
expectedBefore: function expectedBefore() {
|
||||
return "Expected single space before \":\"";
|
||||
},
|
||||
rejectedBefore: function rejectedBefore() {
|
||||
return "Unexpected whitespace before \":\"";
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user