UNPKG

@stylistic/stylelint-plugin

Version:
9 lines (8 loc) 402 B
/** * 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` }