You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'flags')
Additional Info
This seems to only occur if both @typescript-eslint/no-useless-default-assignment and @typescript-eslint/unbound-method are enabled. flatMap produces the error but map does not.
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.9.2&fileType=.ts&code=JYOwLgpgTgZghgYwgAgGIHt0GdkG8BQyyARnFAPwBcyIArgLbHT4C%2B%2B%2BC6IWYyMmWahmwBtALrIAvMnEBudv2wA6GABs4YALJwADgAo9uEmSnIALACZkLAJRSAfMag35QA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tmUSWWS0AJogBmAQwR1xAygHMmAW0Qt0URNGgdokADThseIqWQVqdBszawmAIw42htZfgAWHIWsgatOgwF8QfyA&tsconfig=N4XyA&tokens=false
Repro Code
ESLint Config
tsconfig
{}Expected Result
No errors.
Actual Result
Linting fails with
Additional Info
This seems to only occur if both
@typescript-eslint/no-useless-default-assignmentand@typescript-eslint/unbound-methodare enabled.flatMapproduces the error butmapdoes not.