Bug: syntax error in prefer-arrow-callback
autofix
#16718
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
autofix
This change is related to ESLint's autofixing capabilities
bug
ESLint is working incorrectly
repro:yes
rule
Relates to ESLint's core rules
Projects
Environment
Node version: v19.3.0
npm version: v9.2.0
Local ESLint version: v8.30.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 22.1.0
What parser are you using?
Default (Espree)
What did you do?
Configuration
What did you expect to happen?
Autofix should fix the code like this:
What actually happened?
Autofix produces unparseable code:
DEMO LINK
The problem occurs when the function body starts on a new line, like in the Allman style.
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: