Bug: [use-unknown-in-catch-callback-variable] Does not flag second argument of .then
#9056
Open
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
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.3.3&fileType=.tsx&code=AoJw9gtglgzgpgOhHGYA2A3OAKAlAgFwAs4A7bPAAgF4A%2BSgb0oF8AaS7OEcEXG%2Brjz4B6YZUFgQlWJQIBPAA5wAJpQCGMdaTlA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6WZRW2JgayYD2Adya1mtMgEN8ZABYTJ8eACNJZXrQBukqpOVJ0URNGgDokcGAC%2BIK0A&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected an error as
error
is not explicitly typed asunknown
and instead falls back toany
.Actual Result
No error.
Additional Info
No response
The text was updated successfully, but these errors were encountered: