@uinaf/oxlint-plugin-no-comments 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -391,7 +391,8 @@ function buildMatchers(option) {
|
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
function commentText(comment) {
|
|
394
|
-
|
|
394
|
+
if (comment.type !== "Block") return comment.value.trim();
|
|
395
|
+
return comment.value.split("\n").map((line) => line.replace(/^\s*\**\s*/u, "")).join("\n").trim();
|
|
395
396
|
}
|
|
396
397
|
function isJSDoc(comment) {
|
|
397
398
|
return comment.type === "Block" && comment.value.startsWith("*");
|
package/package.json
CHANGED