Skip to content

Commit

Permalink
chore: add latest/ to meta.docs.url in all core rules (#17136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Apr 29, 2023
1 parent 1468f5b commit 9094d79
Show file tree
Hide file tree
Showing 292 changed files with 292 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -110,7 +110,7 @@ module.exports = {
files: ["lib/rules/*"],
excludedFiles: ["index.js"],
rules: {
"eslint-plugin/require-meta-docs-url": ["error", { pattern: "https://eslint.org/docs/rules/{{name}}" }]
"eslint-plugin/require-meta-docs-url": ["error", { pattern: "https://eslint.org/docs/latest/rules/{{name}}" }]
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Expand Up @@ -145,7 +145,7 @@ module.exports = [
files: ["lib/rules/*"],
ignores: ["index.js"],
rules: {
"eslint-plugin/require-meta-docs-url": ["error", { pattern: "https://eslint.org/docs/rules/{{name}}" }]
"eslint-plugin/require-meta-docs-url": ["error", { pattern: "https://eslint.org/docs/latest/rules/{{name}}" }]
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/accessor-pairs.js
Expand Up @@ -142,7 +142,7 @@ module.exports = {
docs: {
description: "Enforce getter and setter pairs in objects and classes",
recommended: false,
url: "https://eslint.org/docs/rules/accessor-pairs"
url: "https://eslint.org/docs/latest/rules/accessor-pairs"
},

schema: [{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/array-bracket-newline.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Enforce linebreaks after opening and before closing array brackets",
recommended: false,
url: "https://eslint.org/docs/rules/array-bracket-newline"
url: "https://eslint.org/docs/latest/rules/array-bracket-newline"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/array-bracket-spacing.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
docs: {
description: "Enforce consistent spacing inside array brackets",
recommended: false,
url: "https://eslint.org/docs/rules/array-bracket-spacing"
url: "https://eslint.org/docs/latest/rules/array-bracket-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/array-callback-return.js
Expand Up @@ -141,7 +141,7 @@ module.exports = {
docs: {
description: "Enforce `return` statements in callbacks of array methods",
recommended: false,
url: "https://eslint.org/docs/rules/array-callback-return"
url: "https://eslint.org/docs/latest/rules/array-callback-return"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/array-element-newline.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Enforce line breaks after each array element",
recommended: false,
url: "https://eslint.org/docs/rules/array-element-newline"
url: "https://eslint.org/docs/latest/rules/array-element-newline"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/arrow-body-style.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
docs: {
description: "Require braces around arrow function bodies",
recommended: false,
url: "https://eslint.org/docs/rules/arrow-body-style"
url: "https://eslint.org/docs/latest/rules/arrow-body-style"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/arrow-parens.js
Expand Up @@ -35,7 +35,7 @@ module.exports = {
docs: {
description: "Require parentheses around arrow function arguments",
recommended: false,
url: "https://eslint.org/docs/rules/arrow-parens"
url: "https://eslint.org/docs/latest/rules/arrow-parens"
},

fixable: "code",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/arrow-spacing.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
docs: {
description: "Enforce consistent spacing before and after the arrow in arrow functions",
recommended: false,
url: "https://eslint.org/docs/rules/arrow-spacing"
url: "https://eslint.org/docs/latest/rules/arrow-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/block-scoped-var.js
Expand Up @@ -16,7 +16,7 @@ module.exports = {
docs: {
description: "Enforce the use of variables within the scope they are defined",
recommended: false,
url: "https://eslint.org/docs/rules/block-scoped-var"
url: "https://eslint.org/docs/latest/rules/block-scoped-var"
},

schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/block-spacing.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Disallow or enforce spaces inside of blocks after opening block and before closing block",
recommended: false,
url: "https://eslint.org/docs/rules/block-spacing"
url: "https://eslint.org/docs/latest/rules/block-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/brace-style.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Enforce consistent brace style for blocks",
recommended: false,
url: "https://eslint.org/docs/rules/brace-style"
url: "https://eslint.org/docs/latest/rules/brace-style"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/callback-return.js
Expand Up @@ -21,7 +21,7 @@ module.exports = {
docs: {
description: "Require `return` statements after callbacks",
recommended: false,
url: "https://eslint.org/docs/rules/callback-return"
url: "https://eslint.org/docs/latest/rules/callback-return"
},

schema: [{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/camelcase.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
docs: {
description: "Enforce camelcase naming convention",
recommended: false,
url: "https://eslint.org/docs/rules/camelcase"
url: "https://eslint.org/docs/latest/rules/camelcase"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/capitalized-comments.js
Expand Up @@ -107,7 +107,7 @@ module.exports = {
docs: {
description: "Enforce or disallow capitalization of the first letter of a comment",
recommended: false,
url: "https://eslint.org/docs/rules/capitalized-comments"
url: "https://eslint.org/docs/latest/rules/capitalized-comments"
},

fixable: "code",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/class-methods-use-this.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
docs: {
description: "Enforce that class methods utilize `this`",
recommended: false,
url: "https://eslint.org/docs/rules/class-methods-use-this"
url: "https://eslint.org/docs/latest/rules/class-methods-use-this"
},

schema: [{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/comma-dangle.js
Expand Up @@ -78,7 +78,7 @@ module.exports = {
docs: {
description: "Require or disallow trailing commas",
recommended: false,
url: "https://eslint.org/docs/rules/comma-dangle"
url: "https://eslint.org/docs/latest/rules/comma-dangle"
},

fixable: "code",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/comma-spacing.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
docs: {
description: "Enforce consistent spacing before and after commas",
recommended: false,
url: "https://eslint.org/docs/rules/comma-spacing"
url: "https://eslint.org/docs/latest/rules/comma-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/comma-style.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Enforce consistent comma style",
recommended: false,
url: "https://eslint.org/docs/rules/comma-style"
url: "https://eslint.org/docs/latest/rules/comma-style"
},

fixable: "code",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/complexity.js
Expand Up @@ -25,7 +25,7 @@ module.exports = {
docs: {
description: "Enforce a maximum cyclomatic complexity allowed in a program",
recommended: false,
url: "https://eslint.org/docs/rules/complexity"
url: "https://eslint.org/docs/latest/rules/complexity"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/computed-property-spacing.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
docs: {
description: "Enforce consistent spacing inside computed property brackets",
recommended: false,
url: "https://eslint.org/docs/rules/computed-property-spacing"
url: "https://eslint.org/docs/latest/rules/computed-property-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/consistent-return.js
Expand Up @@ -48,7 +48,7 @@ module.exports = {
docs: {
description: "Require `return` statements to either always or never specify values",
recommended: false,
url: "https://eslint.org/docs/rules/consistent-return"
url: "https://eslint.org/docs/latest/rules/consistent-return"
},

schema: [{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/consistent-this.js
Expand Up @@ -16,7 +16,7 @@ module.exports = {
docs: {
description: "Enforce consistent naming when capturing the current execution context",
recommended: false,
url: "https://eslint.org/docs/rules/consistent-this"
url: "https://eslint.org/docs/latest/rules/consistent-this"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/constructor-super.js
Expand Up @@ -124,7 +124,7 @@ module.exports = {
docs: {
description: "Require `super()` calls in constructors",
recommended: true,
url: "https://eslint.org/docs/rules/constructor-super"
url: "https://eslint.org/docs/latest/rules/constructor-super"
},

schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/curly.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
docs: {
description: "Enforce consistent brace style for all control statements",
recommended: false,
url: "https://eslint.org/docs/rules/curly"
url: "https://eslint.org/docs/latest/rules/curly"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/default-case-last.js
Expand Up @@ -17,7 +17,7 @@ module.exports = {
docs: {
description: "Enforce default clauses in switch statements to be last",
recommended: false,
url: "https://eslint.org/docs/rules/default-case-last"
url: "https://eslint.org/docs/latest/rules/default-case-last"
},

schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/default-case.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
docs: {
description: "Require `default` cases in `switch` statements",
recommended: false,
url: "https://eslint.org/docs/rules/default-case"
url: "https://eslint.org/docs/latest/rules/default-case"
},

schema: [{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/default-param-last.js
Expand Up @@ -13,7 +13,7 @@ module.exports = {
docs: {
description: "Enforce default parameters to be last",
recommended: false,
url: "https://eslint.org/docs/rules/default-param-last"
url: "https://eslint.org/docs/latest/rules/default-param-last"
},

schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/dot-location.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
docs: {
description: "Enforce consistent newlines before and after dots",
recommended: false,
url: "https://eslint.org/docs/rules/dot-location"
url: "https://eslint.org/docs/latest/rules/dot-location"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/dot-notation.js
Expand Up @@ -28,7 +28,7 @@ module.exports = {
docs: {
description: "Enforce dot notation whenever possible",
recommended: false,
url: "https://eslint.org/docs/rules/dot-notation"
url: "https://eslint.org/docs/latest/rules/dot-notation"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/eol-last.js
Expand Up @@ -16,7 +16,7 @@ module.exports = {
docs: {
description: "Require or disallow newline at the end of files",
recommended: false,
url: "https://eslint.org/docs/rules/eol-last"
url: "https://eslint.org/docs/latest/rules/eol-last"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/eqeqeq.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
docs: {
description: "Require the use of `===` and `!==`",
recommended: false,
url: "https://eslint.org/docs/rules/eqeqeq"
url: "https://eslint.org/docs/latest/rules/eqeqeq"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/for-direction.js
Expand Up @@ -17,7 +17,7 @@ module.exports = {
docs: {
description: "Enforce \"for\" loop update clause moving the counter in the right direction",
recommended: true,
url: "https://eslint.org/docs/rules/for-direction"
url: "https://eslint.org/docs/latest/rules/for-direction"
},

fixable: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/func-call-spacing.js
Expand Up @@ -23,7 +23,7 @@ module.exports = {
docs: {
description: "Require or disallow spacing between function identifiers and their invocations",
recommended: false,
url: "https://eslint.org/docs/rules/func-call-spacing"
url: "https://eslint.org/docs/latest/rules/func-call-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/func-name-matching.js
Expand Up @@ -76,7 +76,7 @@ module.exports = {
docs: {
description: "Require function names to match the name of the variable or property to which they are assigned",
recommended: false,
url: "https://eslint.org/docs/rules/func-name-matching"
url: "https://eslint.org/docs/latest/rules/func-name-matching"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/func-names.js
Expand Up @@ -32,7 +32,7 @@ module.exports = {
docs: {
description: "Require or disallow named `function` expressions",
recommended: false,
url: "https://eslint.org/docs/rules/func-names"
url: "https://eslint.org/docs/latest/rules/func-names"
},

schema: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/func-style.js
Expand Up @@ -16,7 +16,7 @@ module.exports = {
docs: {
description: "Enforce the consistent use of either `function` declarations or expressions",
recommended: false,
url: "https://eslint.org/docs/rules/func-style"
url: "https://eslint.org/docs/latest/rules/func-style"
},

schema: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/function-call-argument-newline.js
Expand Up @@ -17,7 +17,7 @@ module.exports = {
docs: {
description: "Enforce line breaks between arguments of a function call",
recommended: false,
url: "https://eslint.org/docs/rules/function-call-argument-newline"
url: "https://eslint.org/docs/latest/rules/function-call-argument-newline"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/function-paren-newline.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
docs: {
description: "Enforce consistent line breaks inside function parentheses",
recommended: false,
url: "https://eslint.org/docs/rules/function-paren-newline"
url: "https://eslint.org/docs/latest/rules/function-paren-newline"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/generator-star-spacing.js
Expand Up @@ -33,7 +33,7 @@ module.exports = {
docs: {
description: "Enforce consistent spacing around `*` operators in generator functions",
recommended: false,
url: "https://eslint.org/docs/rules/generator-star-spacing"
url: "https://eslint.org/docs/latest/rules/generator-star-spacing"
},

fixable: "whitespace",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/getter-return.js
Expand Up @@ -37,7 +37,7 @@ module.exports = {
docs: {
description: "Enforce `return` statements in getters",
recommended: true,
url: "https://eslint.org/docs/rules/getter-return"
url: "https://eslint.org/docs/latest/rules/getter-return"
},

fixable: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/global-require.js
Expand Up @@ -61,7 +61,7 @@ module.exports = {
docs: {
description: "Require `require()` calls to be placed at top-level module scope",
recommended: false,
url: "https://eslint.org/docs/rules/global-require"
url: "https://eslint.org/docs/latest/rules/global-require"
},

schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/grouped-accessor-pairs.js
Expand Up @@ -98,7 +98,7 @@ module.exports = {
docs: {
description: "Require grouped accessor pairs in object literals and classes",
recommended: false,
url: "https://eslint.org/docs/rules/grouped-accessor-pairs"
url: "https://eslint.org/docs/latest/rules/grouped-accessor-pairs"
},

schema: [
Expand Down

0 comments on commit 9094d79

Please sign in to comment.