mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor(docs): use @experimental
instead of @tags unstable
(#23884)
This commit is contained in:
parent
fabd9a214b
commit
7ab7a14db7
5 changed files with 336 additions and 332 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue