refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
17
home/ags/node_modules/eslint-plugin-promise/rules/lib/get-docs-url.js
generated
vendored
17
home/ags/node_modules/eslint-plugin-promise/rules/lib/get-docs-url.js
generated
vendored
|
|
@ -1,17 +0,0 @@
|
|||
'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