Sha256: 7f9fabff3ba432404116a24a9aaff0c32bf2ee605398990f7ffed35c21d61dee

Contents?: true

Size: 535 Bytes

Versions: 24

Compression:

Stored size: 535 Bytes

Contents

/**
 * Check whether a property is standard
 *
 * @param {string} property
 * @return {boolean} If `true`, the property is standard
 */

module.exports = function isStandardSyntaxProperty(property) {
	// SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))
	if (property.startsWith('$')) {
		return false;
	}

	// Less var (e.g. @var: x)
	if (property.startsWith('@')) {
		return false;
	}

	// SCSS or Less interpolation
	if (/#{.+?}|@{.+?}|\$\(.+?\)/.test(property)) {
		return false;
	}

	return true;
};

Version data entries

24 entries across 24 versions & 1 rubygems

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