💅 noConfusingVoidType false positives #1383
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
noConfusingVoidType
Playground link
https://biomejs.dev/playground/?code=ZQB4AHAAbwByAHQAIABjAG8AbgBzAHQAIABhAGQAZABUAG8AQwBhAHIAdABBAGMAdABpAG8AbgAgAD0AIABjAHIAZQBhAHQAZQBBAHMAeQBuAGMAVABoAHUAbgBrADwAdgBvAGkAZAAsACAAcwB0AHIAaQBuAGcALAAgAFQAaAB1AG4AawBBAFAASQBUAHkAcABlAD4AKAAKACAAIAAgACAAJwBjAGEAcgB0AC8AYQBkAGQASQB0AGUAbQBXAGkAdABoAEMAaABlAGMAawAnACwACgAgACAAIAAgACgAcwBrAHUASQBkACwAIAB0AGgAdQBuAGsAQQBQAEkAKQAgAD0APgAgAHsACgAgACAAIAAgACAAIAAgACAAdABoAHUAbgBrAEEAUABJAC4AZABpAHMAcABhAHQAYwBoACgAYQBkAGQASQB0AGUAbQBUAG8AQwBhAHIAdAAoAHMAawB1AEkAZAApACkAOwAKACAAIAAgACAAfQAsAAoAIAAgACAAIAB7AAoAIAAgACAAIAAgACAAIAAgAGMAbwBuAGQAaQB0AGkAbwBuADoAIAAoAF8ALAAgAHsAIABnAGUAdABTAHQAYQB0AGUAIAB9ACkAIAA9AD4AIAB7AAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAcgBlAHQAdQByAG4AIAAhAGcAZQB0AFMAdABhAHQAZQAoACkALgBjAGEAcgB0AC4AaQBzAEMAaABlAGMAawBpAG4AZwBPAHUAdAA7AAoAIAAgACAAIAAgACAAIAAgAH0ALAAKACAAIAAgACAAfQAsAAoAKQA7AA%3D%3D
Expected result
The
void
in this case is the return type of the payload creator function in createAsyncThunk (the second property in the object). Unless I'm mistaken, the use of void is proper (and necessary for the types to work).Code of Conduct
The text was updated successfully, but these errors were encountered: