mirror of
https://github.com/github/codeql-action.git
synced 2025-12-22 23:30:05 +08:00
Update checked-in dependencies
This commit is contained in:
10
node_modules/eslint-plugin-github/lib/url.js
generated
vendored
Normal file
10
node_modules/eslint-plugin-github/lib/url.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
const {homepage, version} = require('../package.json')
|
||||
const path = require('path')
|
||||
// eslint-disable-next-line eslint-plugin/prefer-object-rule
|
||||
module.exports = ({id}) => {
|
||||
const url = new URL(homepage)
|
||||
const rule = path.basename(id, '.js')
|
||||
url.hash = ''
|
||||
url.pathname += `/blob/v${version}/docs/rules/${rule}.md`
|
||||
return url.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user