A semicolon is accidentally removed #1356
Labels
A-Formatter
Area: formatter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Configuration
Playground link
https://biomejs.dev/playground/?lineWidth=40&semicolons=as-needed&enabledLinting=false&importSortingEnabled=false&code=ZgB1AG4AYwB0AGkAbwBuACAAZgB1AG4APABUAD4AKAAKAAkAZgBuADoAIAAoAGEAcgBnAHMAOgAgAHsACgAJAAkAYQA6ACAAcwB0AHIAaQBuAGcACgAJAAkAYgA6ACAAcwB0AHIAaQBuAGcACgAJAH0AKQAgAD0APgAgAHYAbwBpAGQALAAKACkAIAB7AAoACQBmAG4AKAB7ACAAYQA6ACAAIgBhACIALAAgAGIAOgAgACIAYgAiACAAfQApAAoAfQAKAAoAZgB1AG4AKAAoAGEAcgBnAHMAOgAgAHsAIABhADoAIABzAHQAcgBpAG4AZwA7ACAAYgA6ACAAcwB0AHIAaQBuAGcAIAB9ACkAIAA9AD4AIAB7AAoACQByAGUAdAB1AHIAbgAgAGEAcgBnAHMACgB9ACkACgA%3D
Code of Conduct
Description
fun((args: { a: string; b: string }) => {
is formatted tofun((args: { a: string b: string }) => {
, which is syntactically broken.lineWidth
setting is 40 and the length of this line is 41. If you renameargs
to a shorter name likeobj
, the semicolon won't be removed. If you rename it to a longer name, the line will be line-wrapped.The text was updated successfully, but these errors were encountered: