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/lib/utils/isStandardSyntaxValue.js')
-rw-r--r--assets/node_modules/stylelint/lib/utils/isStandardSyntaxValue.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/assets/node_modules/stylelint/lib/utils/isStandardSyntaxValue.js b/assets/node_modules/stylelint/lib/utils/isStandardSyntaxValue.js
deleted file mode 100644
index 421569b..0000000
--- a/assets/node_modules/stylelint/lib/utils/isStandardSyntaxValue.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-const hasInterpolation = require('../utils/hasInterpolation');
-
-/**
- * Check whether a value is standard
- *
- * @param {string} value
- * @returns {boolean}
- */
-module.exports = function(value) {
- let normalizedValue = value;
-
- // Ignore operators before variables (example -$variable)
- if (/^[-+*/]/.test(value[0])) {
- normalizedValue = normalizedValue.slice(1);
- }
-
- // SCSS variable (example $variable)
- if (normalizedValue.startsWith('$')) {
- return false;
- }
-
- // SCSS namespace (example namespace.$variable)
- if (/^.+\.\$/.test(value)) {
- return false;
- }
-
- // Less variable
- if (normalizedValue.startsWith('@')) {
- return false;
- }
-
- // SCSS or Less interpolation
- if (hasInterpolation(normalizedValue)) {
- return false;
- }
-
- return true;
-};