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

prefer-tacit: Not reporting map(x => Boolean(x)) #801

Closed
abrahamguo opened this issue Apr 1, 2024 · 1 comment · Fixed by #802
Closed

prefer-tacit: Not reporting map(x => Boolean(x)) #801

abrahamguo opened this issue Apr 1, 2024 · 1 comment · Fixed by #802
Labels
Status: Released It's now live. Type: Bug Inconsistencies or issues which will cause a problem for users or implementors.

Comments

@abrahamguo
Copy link

Bug Report

prefer-tacit does not report:

/* eslint functional/prefer-tacit: "error" */
const foo = [1, 2, 3].map(x => Boolean(x));

Expected behavior

Suggest changing to map(Boolean)

Actual behavior

No error was reported.

@abrahamguo abrahamguo added Status: Triage This issue needs to be triaged. Type: Bug Inconsistencies or issues which will cause a problem for users or implementors. labels Apr 1, 2024
Copy link

🎉 This issue has been resolved in version 6.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the Status: Released It's now live. label Apr 14, 2024
@RebeccaStevens RebeccaStevens removed the Status: Triage This issue needs to be triaged. label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Released It's now live. Type: Bug Inconsistencies or issues which will cause a problem for users or implementors.
Projects
None yet
2 participants