+
Skip to content

fix(biome_js_analyze): add JsExport to be walked by JsDocTypeCollectorVisitior #6565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

daivinhtran
Copy link
Contributor

#5698 fixed the majority of #4677.

An unhandled edge case is exported function.

// Some comment
export function exportedFunction {}

In this case, the comment belongs to JsExport instead of AnyJsDeclaration. This PR fixes the edge case.

Copy link

changeset-bot bot commented Jun 26, 2025

🦋 Changeset detected

Latest commit: 2c455d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Jun 26, 2025
@daivinhtran daivinhtran changed the title Fix visitor to walk on JsExport fix(biome_js_analyze): Add JsExport to be walked by JsDocTypeCollectorVisitior Jun 26, 2025
@daivinhtran daivinhtran changed the title fix(biome_js_analyze): Add JsExport to be walked by JsDocTypeCollectorVisitior fix(biome_js_analyze): add JsExport to be walked by JsDocTypeCollectorVisitior Jun 26, 2025
Copy link

codspeed-hq bot commented Jun 26, 2025

CodSpeed Performance Report

Merging #6565 will not alter performance

Comparing daivinhtran:fix-4677 (2c455d8) with main (5f42630)

Summary

✅ 115 untouched benchmarks

@daivinhtran
Copy link
Contributor Author

I think the codspeed report is just noise. Looking into https://codspeed.io/biomejs/biome/branches/daivinhtran%3Afix-4677, the changeset commit is what causes the slowdown which shouldn't be the case.

Copy link
Member

@siketyan siketyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I left a suggestion for the changeset.

Co-authored-by: Naoki Ikeguchi <me@s6n.jp>
Copy link
Contributor

@arendjr arendjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

As an aside, I noticed that TypeOnClassField still generates a diagnostic despite it being used in a JSDoc comment too. I think that is also still an edge case of the rule. But it's not an issue of this PR, so I'll merge this first.

@arendjr arendjr merged commit e85761c into biomejs:main Jun 27, 2025
28 checks passed
@github-actions github-actions bot mentioned this pull request Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载