+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_js_analyze): add code action for noUnusedVariables #3534

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Oct 28, 2022

Summary

Closes #3520

This PR adds a code action for noUnusedVariables. The code action is in line with the rule itself, where bindings that starts with underscore are ignored by default.

Test Plan

Added another case for property members and updated the current snapshots.

@ematipico ematipico requested a review from a team October 28, 2022 13:44
@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for rometools ready!

Name Link
🔨 Latest commit 12a4d1b
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/635be8189e0ae300080019c0
😎 Deploy Preview https://deploy-preview-3534--rometools.netlify.app/docs/lint/rules/nounusedvariables
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ematipico ematipico temporarily deployed to netlify-playground October 28, 2022 13:44 Inactive
@ematipico ematipico changed the title fix(rome_js_analyze): add code action for unused variables fix(rome_js_analyze): add code action for noUnusedVariables Oct 28, 2022
@ematipico ematipico added this to the 10.0.0 milestone Oct 28, 2022
@ematipico ematipico added the A-Linter Area: linter label Oct 28, 2022
@github-actions
Copy link

github-actions bot commented Oct 28, 2022

@ematipico ematipico force-pushed the fix/no-unused-variables-methods branch from cd454c3 to 2b69de6 Compare October 28, 2022 13:58
@ematipico ematipico temporarily deployed to netlify-playground October 28, 2022 13:58 Inactive
@ematipico ematipico temporarily deployed to netlify-playground October 28, 2022 14:32 Inactive
@ematipico ematipico merged commit c1a21bf into main Oct 28, 2022
@ematipico ematipico deleted the fix/no-unused-variables-methods branch October 28, 2022 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

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