Bug: [explicit-function-return-type] false positive on defaulting parameters #8950 8000
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.4.3&fileType=.ts&code=C4TwDgpgBAwghgGwQITgYwNZQLxQBQCUOAfFAG4D2AlgCYDcAUAwGYCuAdmsFRe1M3gDmFYGgAWcAFyxEKdFlyESUAN5QAvgWmVaqpuqA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6RAD2MbMroDNYTMvkoB7JrWiJ8saJKKl0URNGhjokcGAC%2BIHUA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eFYDAruuGAL4g9A&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expect no error since CallBack makes it a typed function expression
Actual Result
"Missing return type on function":
Additional Info
No response
The text was updated successfully, but these errors were encountered: