Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
import*asReactfrom'react';interfaceProps{/** *@deprecated */deprecatedProp:string;}constComp:React.FC<Props>=({ deprecatedProp})=>(<divaria-grabbed>Hi</div>);constanotherExample=<CompdeprecatedProp="oh no"/>;
ESLint Config
{"rules":{"@typescript-eslint/no-deprecated":"warn"}}
tsconfig
{"compilerOptions": {"strictNullChecks":true }}Expected Result
I expect to see a warning for the line that uses 'aria-dragged' and for the last line.
Actual Result
No warnings, though TypeScript does recognize the deprecation.
Additional Info
fwiw, seems like this was an issue in eslint-plugin-deprecated too. Someone tried to solve this separately (I haven't checked if it works):https://github.com/sebakerckhof/eslint-plugin-deprecated-jsx-props