packages/cz-changelog-peakfijn/commitlint-utils.js
function getRule(commitlintConfig, ruleName) {
	const rule = commitlintConfig.rules[ruleName];

	if (rule) {
		return {
			raw: rule,
			level: rule[0],
			applicable: rule[1],
			value: rule[2],
		};
	}
}
function getRule(commitlintConfig, ruleName) {
	const rule = commitlintConfig.rules[ruleName];

	if (rule) {
		return {
			raw: rule,
			level: rule[0],
			applicable: rule[1],
			value: rule[2],
		};
	}
}
function getRule ( commitlintConfig , ruleName ) { const rule = commitlintConfig . rules [ ruleName ] ; if ( rule ) { return { raw : rule , level : rule [ 0 ] , applicable : rule [ 1 ] , value : rule [ 2 ] , } ; } }
Get information from the loaded commitlint config.
This will return an object containing the basic information for this rule.

@param  {Object} commitlintConfig
@param  {Object} ruleName
@return {Object?}
Get information from the loaded commitlint config . This will return an object containing the basic information for this rule .