Skip to content

Crash with "arrow-body-style": ["error", "always"] #14633

@atiupin

Description

@atiupin

Environment Info

Node version: v12.19.0
npm version: v6.14.8
Local ESLint version: v7.27.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 20.4.0

Parser

"@babel/eslint-parser": "7.14.3"

Description

ESLint breaks using rule "arrow-body-style": ["error", "always"] on a very specific function signature.

In my case it's const createMarker = (color) => ({ latitude, longitude }, index) => {};.

Other variations of arrow-body-style (never or as-needed) work fine.

DEMO

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyrepro:yesIssues with a reproducible exampleruleRelates to ESLint's core rules

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions