Sha256: 41078c8852117b54b4af9f14e8aa8b35c780bd932657f92143732f9eaf4482ce

Contents?: true

Size: 420 Bytes

Versions: 23

Compression:

Stored size: 420 Bytes

Contents

'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) {
	// Ignore reference combinators like `/deep/`
	return node.type === 'combinator' && !node.value.startsWith('/') && !node.value.endsWith('/');
};

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.6 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.5 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.4 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.3 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.2 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.1 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3.5 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-5.0.0 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3.4 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3.3 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3.2 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3.1 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.3 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.2.3 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.2.2 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.2.1 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.2 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.1.9 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js
trusty-cms-4.1.8 node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js