You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The eslint rule has options, but we don't usually implement options on the first iteration of a rule. For this task, implement the functionality that is equivalent to the default option (which would be as-needed).
Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
Reacted by Devin Brown, javier, loc, Vlad Maidov, Aleksander Katan, Marc Hermann, sekky, Edoh Kodjo, Maikel van Dort and λ°μ²(Cheon Park)
Is there another task for the "always" eslint setting (i.e., requiring you to add explicit block and return statement)? If not, it would be nice if the title of this were revised to: Port arrow-body-style: as-needed from eslint.
Activity
javieristrying commentedon Feb 19, 2025
Hey @dyc3 I would like to take this issue! π
samueljcook commentedon Apr 19, 2025
Is there another task for the "always" eslint setting (i.e., requiring you to add explicit block and return statement)? If not, it would be nice if the title of this were revised to: Port
arrow-body-style: as-neededfrom eslint.arendjr commentedon Apr 19, 2025
We could use a name such as
useConsistentArrowReturn. I think that name works even if we add the option.samueljcook commentedon Apr 19, 2025
I like that, and it seems to align with other rules that let you pick a potentially controversial style and enforce it, e.g.,
useConsistentArrayTypedevcaeg commentedon Jul 21, 2025
ematipico commentedon Jul 24, 2025
@isjavierdiaz it's been 5 months. I assume you don't have time.
kedevked commentedon Aug 17, 2025
Hey @dyc3 ,
I would like to take this. I am almost ready to land the implementation
khidirbekov commentedon Oct 16, 2025
jeremytenjo commentedon Dec 14, 2025
I created a plugin that enforces it https://github.com/jeremytenjo/biome-plugin-arrow-body-style