commit 0c8b71bc292991d66d9a17875d8308e4f96338db
parent e73114dd2b27db357f5c4c9f885d8432df04fa11
Author: Mark Banner <standard8@mozilla.com>
Date: Wed, 29 Oct 2025 11:19:48 +0000
Bug 1996350 - Enable ESLint rule jsdoc/no-multi-asterisks everywhere. r=frontend-codestyle-reviewers,mossop
This also allows whitespace before asterisks so that we can allow comments which use asterisks within the comment text.
Differential Revision: https://phabricator.services.mozilla.com/D270036
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/eslint-rollouts.config.mjs b/eslint-rollouts.config.mjs
@@ -311,7 +311,6 @@ export default [
"jsdoc/check-tag-names": "off",
"jsdoc/check-types": "off",
"jsdoc/empty-tags": "off",
- "jsdoc/no-multi-asterisks": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/tag-lines": ["off", "any", { startLines: 1 }],
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/valid-jsdoc.mjs b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/valid-jsdoc.mjs
@@ -17,7 +17,7 @@ export default {
"jsdoc/empty-tags": "error",
"jsdoc/multiline-blocks": "error",
"jsdoc/no-bad-blocks": "error",
- "jsdoc/no-multi-asterisks": "error",
+ "jsdoc/no-multi-asterisks": ["error", { allowWhitespace: true }],
"jsdoc/require-param-type": "error",
"jsdoc/require-returns-type": "error",
"jsdoc/tag-lines": ["error", "any", { startLines: 1 }],