Skip to content
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

fix(lint/noSelfAssign): correctly handle literals #385

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Sep 22, 2023

Summary

Closes #322

The rule handles string literals and numeric literals.

I remove the handling of javascript function calls, because it's not intended by design.

Test Plan

Added new test cases

@github-actions github-actions bot added A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages A-Changelog Area: changelog labels Sep 22, 2023
@ematipico ematipico temporarily deployed to Website deployment September 22, 2023 12:40 — with GitHub Actions Inactive
@ematipico ematipico temporarily deployed to Website deployment September 22, 2023 13:14 — with GitHub Actions Inactive
@ematipico ematipico merged commit 481f926 into main Sep 22, 2023
15 of 17 checks passed
@ematipico ematipico deleted the fix/self-assign-literal branch September 22, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Website Area: website L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 correctness/noSelfAssign false positive
2 participants