Crash with "arrow-body-style": ["error", "always"]
#14633
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:yes
Issues with a reproducible example
rule
Relates to ESLint's core rules
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
oras-needed
) work fine.DEMO
The text was updated successfully, but these errors were encountered: