Skip to content

Commit

Permalink
chore: stricter validation of meta.docs.description in core rules (#…
Browse files Browse the repository at this point in the history
…16529)

Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com>
  • Loading branch information
mdjermanovic and bmish committed Nov 10, 2022
1 parent 776827a commit e13f194
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -101,7 +101,7 @@ module.exports = {
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
"eslint-plugin/require-meta-docs-description": ["error", { pattern: "^(Enforce|Require|Disallow)" }],
"eslint-plugin/require-meta-docs-description": ["error", { pattern: "^(Enforce|Require|Disallow) .+[^. ]$" }],
"internal-rules/no-invalid-meta": "error"
}
},
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Expand Up @@ -134,7 +134,7 @@ module.exports = [
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
"eslint-plugin/require-meta-docs-description": ["error", { pattern: "^(Enforce|Require|Disallow)" }],
"eslint-plugin/require-meta-docs-description": ["error", { pattern: "^(Enforce|Require|Disallow) .+[^. ]$" }],
"internal-rules/no-invalid-meta": "error"
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/for-direction.js
Expand Up @@ -15,7 +15,7 @@ module.exports = {
type: "problem",

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

docs: {
description:
"Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.",
"Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead",
recommended: false,
url: "https://eslint.org/docs/rules/prefer-object-spread"
},
Expand Down

0 comments on commit e13f194

Please sign in to comment.