Skip to content

Commit 79e8bda

Browse files
committed
fix(rulesMeta): update invalid rule docs url in rule's metadata
1 parent 0e00592 commit 79e8bda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rules/lib/get-docs-url.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict'
22

3-
const pkg = require('../../package')
4-
53
const REPO_URL = 'https://github.com/xjamundx/eslint-plugin-promise'
64

75
/**
@@ -13,7 +11,7 @@ const REPO_URL = 'https://github.com/xjamundx/eslint-plugin-promise'
1311
* @returns {string} URL to the documentation for the given rule
1412
*/
1513
function getDocsUrl(ruleName) {
16-
return `${REPO_URL}/tree/v${pkg.version}/docs/rules/${ruleName}.md`
14+
return `${REPO_URL}/blob/master/docs/rules/${ruleName}.md`
1715
}
1816

1917
module.exports = getDocsUrl

0 commit comments

Comments
 (0)