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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
import * as React from 'react';
interface Props {
/**
* @deprecated
*/
deprecatedProp: string;
}
const Comp: React.FC<Props> = ({ deprecatedProp }) => (
<div aria-grabbed>
Hi
</div>
);
const anotherExample = <Comp deprecatedProp="oh no" />;
ESLint Config
{
"rules": {
"@typescript-eslint/no-deprecated": "warn"
}
}
tsconfig
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