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

feat(linter): implement eslint/no-useless-call #7473

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

camc314
Copy link
Contributor

@camc314 camc314 commented Nov 25, 2024

based on #4393

Copy link

graphite-app bot commented Nov 25, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@github-actions github-actions bot added A-linter Area - Linter C-enhancement Category - New feature or request labels Nov 25, 2024
@camc314 camc314 requested review from Boshen and camchenry November 25, 2024 12:05
"obj.foo.apply();",
"obj?.foo.bar.call(obj.foo, 1, 2);",
"class C { #call; wrap(foo) { foo.#call(undefined, 1, 2); } }",
//"(obj?.foo).test.bar.call(obj?.foo.test, 1, 2);",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

eslint ignores this case because of the parenthesis on the (obj?.foo).

i think we should report this

@camc314 camc314 marked this pull request as draft November 25, 2024 12:11
Copy link

codspeed-hq bot commented Nov 25, 2024

CodSpeed Performance Report

Merging #7473 will not alter performance

Comparing feat/no_useless_call (371736c) with main (d7d0735)

Summary

✅ 30 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants