ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
17
home/ags/node_modules/eslint-plugin-promise/rules/lib/get-docs-url.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-promise/rules/lib/get-docs-url.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'use strict'
|
||||
|
||||
const REPO_URL = 'https://github.com/eslint-community/eslint-plugin-promise'
|
||||
|
||||
/**
|
||||
* Generates the URL to documentation for the given rule name. It uses the
|
||||
* package version to build the link to a tagged version of the
|
||||
* documentation file.
|
||||
*
|
||||
* @param {string} ruleName - Name of the eslint rule
|
||||
* @returns {string} URL to the documentation for the given rule
|
||||
*/
|
||||
function getDocsUrl(ruleName) {
|
||||
return `${REPO_URL}/blob/main/docs/rules/${ruleName}.md`
|
||||
}
|
||||
|
||||
module.exports = getDocsUrl
|
||||
Loading…
Add table
Add a link
Reference in a new issue