lib/template-generator.js
function getRuleLink(ruleId) {
	let ruleLink = `http://eslint.org/docs/rules/${ruleId}`;

	if (_.startsWith(ruleId, 'angular')) {
		ruleId = ruleId.replace('angular/', '');
		ruleLink = `https://github.com/Gillespie59/eslint-plugin-angular/blob/master/docs/${ruleId}.md`;
	} else if (_.startsWith(ruleId, 'lodash')) {
		ruleId = ruleId.replace('lodash/', '');
		ruleLink = `https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/${ruleId}.md`;
	}
	return ruleLink;
}
function getRuleLink(ruleId) {
	let ruleLink = `http://eslint.org/docs/rules/${ruleId}`;

	if (_.startsWith(ruleId, 'angular')) {
		ruleId = ruleId.replace('angular/', '');
		ruleLink = `https://github.com/Gillespie59/eslint-plugin-angular/blob/master/docs/${ruleId}.md`;
	} else if (_.startsWith(ruleId, 'lodash')) {
		ruleId = ruleId.replace('lodash/', '');
		ruleLink = `https://github.com/wix/eslint-plugin-lodash/blob/master/docs/rules/${ruleId}.md`;
	}
	return ruleLink;
}
function getRuleLink ( ruleId ) { let ruleLink = ` ${ ruleId } ` ; if ( _ . startsWith ( ruleId , 'angular' ) ) { ruleId = ruleId . replace ( 'angular/' , '' ) ; ruleLink = ` ${ ruleId } ` ; } else if ( _ . startsWith ( ruleId , 'lodash' ) ) { ruleId = ruleId . replace ( 'lodash/' , '' ) ; ruleLink = ` ${ ruleId } ` ; } return ruleLink ; }
Takes in a rule Id and returns the correct link for the description
@param {string} ruleId A eslint rule Id
@return {string} The link to the rules description
Takes in a rule Id and returns the correct link for the description