@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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
- return comment.type === "Block" ? comment.value.replace(/^\s*\**\s*/u, "").trimEnd() : comment.value.trim();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uinaf/oxlint-plugin-no-comments",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Oxlint rule that bans code comments, except tool directives, license headers, API docs, and SAFETY justifications",
5
5
  "keywords": [
6
6
  "comments",