@stylistic/stylelint-plugin
Version:
A collection of stylistic/formatting Stylelint rules
9 lines (8 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.
* @returns {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`
}