💅 lint/style/useExportType
removes comments in multiline export statements
#2685
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
useExportType
Playground link
https://biomejs.dev/playground/?code=aQBuAHQAZQByAGYAYQBjAGUAIABGAG8AbwAgAHsAfQAKAGkAbgB0AGUAcgBmAGEAYwBlACAAQgBhAHIAIAB7AH0ACgAKAGUAeABwAG8AcgB0ACAAewAKACAAIAAvACoAKgAgAEAAZABlAHAAcgBlAGMAYQB0AGUAZAAgAGkAbQBwAG8AcgB0ACAAewB0AHkAcABlACAARgBvAG8AfQAgAGYAcgBvAG0AIAAnAHAAawBnACcAIABpAG4AcwB0AGUAYQBkACAAKgAvAAoAIAAgAHQAeQBwAGUAIABGAG8AbwAsAAoAIAAgAC8AKgAqACAAQABkAGUAcAByAGUAYwBhAHQAZQBkACAAaQBtAHAAbwByAHQAIAB7AHQAeQBwAGUAIABCAGEAcgB9ACAAZgByAG8AbQAgACcAcABrAGcAJwAgAGkAbgBzAHQAZQBhAGQAIAAqAC8ACgAgACAAdAB5AHAAZQAgAEIAYQByACwACgB9AA%3D%3D
Expected result
It should preserve comments included within an export statement.
Input:
Expected result:
Actual result:
NOTE: this issue does not occur if there are no
type
annotations within theexport
statement. The following example is handled correctly:Input:
Result:
Code of Conduct
The text was updated successfully, but these errors were encountered: