Skip to content

Commit

Permalink
Merge pull request #165 from diem98/hotfix/invalid-rule-doc-url
Browse files Browse the repository at this point in the history
fix(rulesMeta): update invalid rule docs url in rule's metadata
  • Loading branch information
xjamundx committed Jul 8, 2020
2 parents 3cf54c6 + 79e8bda commit 5bffa17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rules/lib/get-docs-url.js
@@ -1,7 +1,5 @@
'use strict'

const pkg = require('../../package')

const REPO_URL = 'https://github.com/xjamundx/eslint-plugin-promise'

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

module.exports = getDocsUrl

0 comments on commit 5bffa17

Please sign in to comment.