Skip to content

Commit 5e2959d

Browse files
committed
Set url parameter automatically
1 parent 7f54220 commit 5e2959d

17 files changed

+25
-16
lines changed

lib/rules/array-foreach.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'suggestion',
44
docs: {
55
description: 'enforce `for..of` loops over `Array.forEach`',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/array-foreach.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/async-currenttarget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow `event.currentTarget` calls inside of async functions',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/async-currenttarget.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/async-preventdefault.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow `event.preventDefault` calls inside of async functions',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/async-preventDefault.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/authenticity-token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow usage of CSRF tokens in JavaScript',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/authenticity-token.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/get-attribute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function(context) {
2323
type: 'problem',
2424
docs: {
2525
description: 'disallow wrong usage of attribute names',
26-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/get-attribute.md'
26+
url: require('../url')(module)
2727
},
2828
fixable: 'code',
2929
schema: []

lib/rules/js-class-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'suggestion',
44
docs: {
55
description: 'enforce a naming convention for js- prefixed classes',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/js-class-name.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/no-blur.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function(context) {
44
type: 'problem',
55
docs: {
66
description: 'disallow usage of `Element.prototype.blur()`',
7-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/no-blur.md'
7+
url: require('../url')(module)
88
},
99
schema: []
1010
},

lib/rules/no-d-none.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow usage the `d-none` CSS class',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/no-d-none.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/no-dataset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'enforce usage of `Element.prototype.getAttribute` instead of `Element.prototype.datalist`',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/no-dataset.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

lib/rules/no-implicit-buggy-globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
type: 'problem',
44
docs: {
55
description: 'disallow implicit global variables',
6-
url: 'https://github.com/github/eslint-plugin-github/blob/main/docs/rules/no-implicit-buggy-globals.md'
6+
url: require('../url')(module)
77
},
88
schema: []
99
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy