refactor(docs): use @experimental instead of @tags unstable (#23884)

This commit is contained in:
Leo Kettmeir 2024-05-22 04:31:51 -07:00 committed by GitHub
parent fabd9a214b
commit 7ab7a14db7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 336 additions and 332 deletions

View file

@ -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");
}
}
}