Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/stylelint-scss/dist/rules/double-slash-comment-whitespace-inside/index.js')
-rw-r--r--assets/node_modules/stylelint-scss/dist/rules/double-slash-comment-whitespace-inside/index.js76
1 files changed, 0 insertions, 76 deletions
diff --git a/assets/node_modules/stylelint-scss/dist/rules/double-slash-comment-whitespace-inside/index.js b/assets/node_modules/stylelint-scss/dist/rules/double-slash-comment-whitespace-inside/index.js
deleted file mode 100644
index 59faf89..0000000
--- a/assets/node_modules/stylelint-scss/dist/rules/double-slash-comment-whitespace-inside/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = _default;
-exports.messages = exports.ruleName = void 0;
-
-var _utils = require("../../utils");
-
-var _stylelint = require("stylelint");
-
-var ruleName = (0, _utils.namespace)("double-slash-comment-whitespace-inside");
-exports.ruleName = ruleName;
-
-var messages = _stylelint.utils.ruleMessages(ruleName, {
- expected: "Expected a space after //",
- rejected: "Unexpected space after //"
-});
-
-exports.messages = messages;
-
-function _default(expectation) {
- return function (root, result) {
- var validOptions = _stylelint.utils.validateOptions(result, ruleName, {
- actual: expectation,
- possible: ["always", "never"]
- });
-
- if (!validOptions) {
- return;
- }
-
- (0, _utils.eachRoot)(root, checkRoot);
-
- function checkRoot(root) {
- var rootString = root.source.input.css;
-
- if (rootString.trim() === "") {
- return;
- }
-
- var comments = (0, _utils.findCommentsInRaws)(rootString);
- comments.forEach(function (comment) {
- // Only process // comments
- if (comment.type !== "double-slash") {
- return;
- } // if it's `//` - no warning whatsoever; if `// ` - then trailing
- // whitespace rule will govern this
-
-
- if (comment.text === "") {
- return;
- }
-
- var message;
-
- if (expectation === "never" && comment.raws.left !== "") {
- message = messages.rejected;
- } else if (comment.raws.left === "" && expectation === "always") {
- message = messages.expected;
- } else {
- return;
- }
-
- _stylelint.utils.report({
- message: message,
- node: root,
- index: comment.source.start + comment.raws.startToken.length,
- result: result,
- ruleName: ruleName
- });
- });
- }
- };
-} \ No newline at end of file