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/operator-no-newline-before/index.js')
-rw-r--r--assets/node_modules/stylelint-scss/dist/rules/operator-no-newline-before/index.js80
1 files changed, 0 insertions, 80 deletions
diff --git a/assets/node_modules/stylelint-scss/dist/rules/operator-no-newline-before/index.js b/assets/node_modules/stylelint-scss/dist/rules/operator-no-newline-before/index.js
deleted file mode 100644
index 12dd6a0..0000000
--- a/assets/node_modules/stylelint-scss/dist/rules/operator-no-newline-before/index.js
+++ /dev/null
@@ -1,80 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = _default;
-exports.messages = exports.ruleName = void 0;
-
-var _stylelint = require("stylelint");
-
-var _utils = require("../../utils");
-
-var _operatorNoUnspaced = require("../operator-no-unspaced");
-
-var ruleName = (0, _utils.namespace)("operator-no-newline-before");
-exports.ruleName = ruleName;
-
-var messages = _stylelint.utils.ruleMessages(ruleName, {
- rejected: function rejected(operator) {
- return "Unexpected newline before \"".concat(operator, "\"");
- }
-});
-
-exports.messages = messages;
-
-/**
- * The checker function: whether there is a newline before THAT operator.
- */
-function checkNewlineBefore(_ref) {
- var string = _ref.string,
- globalIndex = _ref.globalIndex,
- startIndex = _ref.startIndex,
- endIndex = _ref.endIndex,
- node = _ref.node,
- result = _ref.result;
- var symbol = string.substring(startIndex, endIndex + 1);
- var newLineBefore = false;
- var index = startIndex - 1;
-
- while (index && (0, _utils.isWhitespace)(string[index])) {
- if (string[index] === "\n") {
- newLineBefore = true;
- break;
- }
-
- index--;
- }
-
- if (newLineBefore) {
- _stylelint.utils.report({
- ruleName: ruleName,
- result: result,
- node: node,
- message: messages.rejected(symbol),
- index: endIndex + globalIndex
- });
- }
-}
-
-function _default(expectation) {
- return function (root, result) {
- var validOptions = _stylelint.utils.validateOptions(result, ruleName, {
- actual: expectation
- });
-
- if (!validOptions) {
- return;
- }
-
- (0, _utils.eachRoot)(root, checkRoot);
-
- function checkRoot(root) {
- (0, _operatorNoUnspaced.calculationOperatorSpaceChecker)({
- root: root,
- result: result,
- checker: checkNewlineBefore
- });
- }
- };
-} \ No newline at end of file