From 7ab7a14db74b037ca8b035a04c28ac0b6e30e716 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 22 May 2024 04:31:51 -0700 Subject: refactor(docs): use `@experimental` instead of `@tags unstable` (#23884) --- tools/jsdoc_checker.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tools/jsdoc_checker.js') diff --git a/tools/jsdoc_checker.js b/tools/jsdoc_checker.js index 733790c4e..4cbccf535 100755 --- a/tools/jsdoc_checker.js +++ b/tools/jsdoc_checker.js @@ -70,14 +70,8 @@ for (const file of project.getSourceFiles()) { } if (unstableFiles.includes(file)) { - const tagsTag = tags.find((tag) => tag.getTagName() === "tags"); - if ( - !(tagsTag?.getComment() && - tagsTag.getCommentText().includes("unstable")) - ) { - errors.push( - getErrorPrefix(node) + "JSDoc @tags tag with value 'unstable'", - ); + if (!tags.find((tag) => tag.getTagName() === "experimental")) { + errors.push(getErrorPrefix(node) + "JSDoc @experimental tag"); } } } -- cgit v1.2.3