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/isStandardSyntaxCombinator.js')
-rw-r--r--assets/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/assets/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js b/assets/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
deleted file mode 100644
index 3d99998..0000000
--- a/assets/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-/**
- * Check whether a combinator is standard
- *
- * @param {import('postcss-selector-parser').Combinator} node postcss-selector-parser node (of type combinator)
- * @return {boolean} If `true`, the combinator is standard
- */
-module.exports = function(node) {
- // Ghost descendant combinators around reference combinators like `/deep/`
- // postcss-selector-parser parsers references combinators as tag selectors surrounded
- // by descendant combinators
- const prev = node.prev();
- const next = node.next();
-
- if (
- (prev &&
- prev.type === 'tag' &&
- typeof prev.value === 'string' &&
- prev.value.startsWith('/') &&
- prev.value.endsWith('/')) ||
- (next &&
- next.type === 'tag' &&
- typeof next.value === 'string' &&
- next.value.startsWith('/') &&
- next.value.endsWith('/'))
- ) {
- return false;
- }
-
- return true;
-};