Bug: [no-unsafe-member-access] Differentiate a types-error any from a "true" any #9217
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
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.5&fileType=.ts&code=DYUwLgBAbghsCuIBcEByB7MBpAdug7jgNwBQJsCIAdAA4BO6NIdYAnkUA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tieQEMAZoloBbRCIBGiaLT5kyKVBkjToHaJHBgAviG1A&tsconfig=&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
When the value having a property accessed is of an "error" type, there should be some indication that it's not the same as an
any
. It's confusing for developers to see both "error"any
s and "true"any
s described with the same messaging.Actual Result
Additional Info
Split out of #8304 <- #8231.
💖
The text was updated successfully, but these errors were encountered: