gund / eslint-plugin-deprecation

ESLint rule that reports usage of deprecated code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: fail on JSX usage of deprecated components

adidahiya opened this issue ยท comments

Filing for tracking purposes; I may be able to contribute a PR.


Currently if I have a deprecated react component:

/** @deprecated */
class OldStuff extends React.Component {
  ...
}

and I use it:

ReactDOM.render(<OldStuff />, ...);

then I don't get a warning. I would like this to produce a lint failure.

๐ŸŽ‰ This issue has been resolved in version 1.2.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€