Skip to content

πŸ“Ž Port arrow-body-style from eslintΒ #5050

Closed

Description

@dyc3

Description

Port the arrow-body-style rule from eslint.

Suggested names:

  • useConsistentArrowReturn

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).

Source: https://eslint.org/docs/latest/rules/arrow-body-style

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.

Activity

  1. added
    A-Linter
    S-Good first issue
    L-JavaScript
    on Feb 6, 2025
  2. javieristrying commented on Feb 19, 2025

    @javieristrying
    Contributor

    Hey @dyc3 I would like to take this issue! πŸ˜€

  3. samueljcook commented on Apr 19, 2025

    @samueljcook

    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.

  4. arendjr commented on Apr 19, 2025

    @arendjr
    Contributor

    We could use a name such as useConsistentArrowReturn. I think that name works even if we add the option.

  5. samueljcook commented on Apr 19, 2025

    @samueljcook

    We could use a name such as useConsistentArrowReturn. I think that name works even if we add the option.

    I like that, and it seems to align with other rules that let you pick a potentially controversial style and enforce it, e.g., useConsistentArrayType

  6. devcaeg commented on Jul 21, 2025

    @devcaeg
  7. ematipico commented on Jul 24, 2025

    @ematipico
    Member

    @isjavierdiaz it's been 5 months. I assume you don't have time.

  8. kedevked commented on Aug 17, 2025

    @kedevked
    Contributor

    Hey @dyc3 ,
    I would like to take this. I am almost ready to land the implementation

  9. khidirbekov commented on Oct 16, 2025

    @khidirbekov
  10. jeremytenjo commented on Dec 14, 2025

    @jeremytenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-LinterL-JavaScriptS-Good first issue

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions