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

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

Closed
atiupin opened this issue May 26, 2021 · 1 comment · Fixed by #14635 · 4 remaining pull requests
Closed

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

atiupin opened this issue May 26, 2021 · 1 comment · Fixed by #14635 · 4 remaining pull requests
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

Comments

@atiupin
Copy link

atiupin commented May 26, 2021

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

@atiupin atiupin added bug ESLint is working incorrectly repro:needed This issue should include a reproducible example labels May 26, 2021
@aladdin-add
Copy link
Member

thx! confirmed, it also happened with the default parser.

@aladdin-add aladdin-add added accepted There is consensus among the team that this change meets the criteria for inclusion repro:yes Issues with a reproducible example and removed repro:needed This issue should include a reproducible example labels May 26, 2021
@mdjermanovic mdjermanovic added the rule Relates to ESLint's core rules label May 26, 2021
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Nov 25, 2021
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.