@stylistic/stylelint-plugin
Version:
A collection of stylistic/formatting Stylelint rules
10 lines (9 loc) • 402 B
JavaScript
/**
* Constructs the URL for the documentation of a given stylelint rule based on its short name.
*
* @param {string} shortName - The short name of the stylelint rule
* @return {string} URL pointing to the rule's markdown documentation
*/
export function getRuleDocUrl (shortName) {
return `https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/lib/rules/${shortName}/README.md`
}