Bug: prefer-return-this-type
report and fixes code to one with TS errors
#11225
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for team members to take a look
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.8.2&fileType=.tsx&code=MYGwhgzhAEBCkFNoG8BQ1oEsIAlMBN8EA7ALmgCMB7KkBMY6AXmgBcAnAVwQG51oImCiEzEA5uXgQkAH2jFOIEM3mKQfDADMAFAEpJiaHIVKU-DJk3RtAQlYALbADpseQiV1mM36OwStOdkYHbA1vAF9zX39A4McIJ0FhUTEwyMjUUEgYAGUEYCpifC8sXAIiMkoaOgYVDm4wpJFxcjyCoqNVUxYTdX4dfTZ4zt6SiytbEITXco8x7z8AoKHQqMifRdiVhKaUtNRwoA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Y6RAM0Wls-yxoTWvgAWlZKJKJ0UXtAD20SODABfEOqA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
The code is marked as valid
Actual Result
EsLint report an error, after fixer is applied TypeScript shows an error.
Additional Info
No response
The text was updated successfully, but these errors were encountered: