Skip to content

refactor(linter/no-unused-vars): simplify check for export nodes#12044

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-03-refactor_linter_no-unused-vars_simplify_check_for_export_nodes
Jul 3, 2025
Merged

refactor(linter/no-unused-vars): simplify check for export nodes#12044
graphite-app[bot] merged 1 commit intomainfrom
07-03-refactor_linter_no-unused-vars_simplify_check_for_export_nodes

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jul 3, 2025

This PR is a follow-up to #12022

This method checks whether a symbol has been exported, and only ExportNamedDeclaration and ExportDefaultDeclaration can produce a Symbol, so the module.is_export() is unnecessary.

@Dunqing Dunqing requested a review from camc314 as a code owner July 3, 2025 03:15
@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jul 3, 2025
Copy link
Member Author

Dunqing commented Jul 3, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 3, 2025

CodSpeed Instrumentation Performance Report

Merging #12044 will not alter performance

Comparing 07-03-refactor_linter_no-unused-vars_simplify_check_for_export_nodes (387762d) with 07-03-refactor_semantic_remove_redundant_code_handling_reference_flags (07e14a4)

Summary

✅ 38 untouched benchmarks

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Jul 3, 2025
Copy link
Member Author

Dunqing commented Jul 3, 2025

Merge activity

)

This PR is a follow-up to #12022

This method checks whether a symbol has been exported, and only `ExportNamedDeclaration` and `ExportDefaultDeclaration` can produce a Symbol, so the `module.is_export()` is unnecessary.
@graphite-app graphite-app bot force-pushed the 07-03-refactor_semantic_remove_redundant_code_handling_reference_flags branch from 03090f5 to 07e14a4 Compare July 3, 2025 04:26
@graphite-app graphite-app bot force-pushed the 07-03-refactor_linter_no-unused-vars_simplify_check_for_export_nodes branch from cbbc966 to 387762d Compare July 3, 2025 04:26
Base automatically changed from 07-03-refactor_semantic_remove_redundant_code_handling_reference_flags to main July 3, 2025 04:33
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 3, 2025
@graphite-app graphite-app bot merged commit 387762d into main Jul 3, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 07-03-refactor_linter_no-unused-vars_simplify_check_for_export_nodes branch July 3, 2025 04:34
@oxc-bot oxc-bot mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants