Bug: [no-deprecated] Exported classes implementing a deprecated interface are not reported #10253
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.6.2&fileType=.tsx&code=PQKhAIAEBMFMAcBOsDGBDALra4TAFACWAdlogGZoqzgAKsG4A3gL774oA2aAzj%2BAGFM4QgFt4nWKNil%2B9Rq3ywAHvAD2iRl178AImoDmI8ZOmy6DZmyA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1oBNFjpEZAIb5E3dFETRoHaJHBgAviEVA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected that line 5 should report the error "
Pet
is deprecated.", just as it does (correctly) for line 4. I expect use of a deprecated interface to be flagged regardless of whether the class implementing it is exported or not.Actual Result
No error is reported for line 5 unless I remove the the
export
keyword.Additional Info
No response
The text was updated successfully, but these errors were encountered: