Skip to content

Conversation

@DonIsaac
Copy link
Contributor

@DonIsaac DonIsaac commented May 6, 2025

Previously, no-unused-vars would fix

for (const foo of thing) {}

into

for ( of thing) {}

which is obviously wrong.

Now it tries to rename it to an allowed unused pattern, or returns a noop if not.

Copy link
Contributor Author

DonIsaac commented May 6, 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.

@github-actions github-actions bot added A-linter Area - Linter C-bug Category - Bug labels May 6, 2025
@DonIsaac DonIsaac marked this pull request as ready for review May 6, 2025 06:43
@codspeed-hq
Copy link

codspeed-hq bot commented May 6, 2025

CodSpeed Instrumentation Performance Report

Merging #10824 will not alter performance

Comparing don/05-05-fix_linter/no-unused-vars_fixer_cannot_delete_usused_for_in/of_iterators (b2c287f) with main (49a6f97)

Summary

✅ 36 untouched benchmarks

@DonIsaac DonIsaac force-pushed the don/05-05-fix_linter/no-unused-vars_fixer_cannot_delete_usused_for_in/of_iterators branch from 389c523 to b434fd0 Compare May 6, 2025 07:28
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label May 6, 2025
Copy link
Contributor

camc314 commented May 6, 2025

Merge activity

…ators (#10824)

Previously, `no-unused-vars` would fix
```js
for (const foo of thing) {}
```

into
```js
for ( of thing) {}
```
which is obviously wrong.

Now it tries to rename it to an allowed unused pattern, or returns a noop if not.
@graphite-app graphite-app bot force-pushed the don/05-05-fix_linter/no-unused-vars_fixer_cannot_delete_usused_for_in/of_iterators branch from f20a14a to b2c287f Compare May 6, 2025 08:35
@graphite-app graphite-app bot merged commit b2c287f into main May 6, 2025
23 checks passed
@graphite-app graphite-app bot deleted the don/05-05-fix_linter/no-unused-vars_fixer_cannot_delete_usused_for_in/of_iterators branch May 6, 2025 08:38
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 6, 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-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants