summaryrefslogtreecommitdiff
path: root/tools/jsdoc_checker.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-05-22 04:31:51 -0700
committerGitHub <noreply@github.com>2024-05-22 04:31:51 -0700
commit7ab7a14db74b037ca8b035a04c28ac0b6e30e716 (patch)
tree6930fc704cda892c3ad445e1550a5505edbca1bd /tools/jsdoc_checker.js
parentfabd9a214b278bb119818187de66121c5f91b751 (diff)
refactor(docs): use `@experimental` instead of `@tags unstable` (#23884)
Diffstat (limited to 'tools/jsdoc_checker.js')
-rwxr-xr-xtools/jsdoc_checker.js10
1 files changed, 2 insertions, 8 deletions
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");
}
}
}