-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react/prefer-stateless-function for tslint-react #117
Comments
Surprised to see that there's been no further discussion on this after 8 months. I miss this a lot from ESLint and would love to see this for TypeScript. |
Is this on the roadmap? With hooks and memo it seems to be a useful rule |
The omission of this rule was one of the first thing I noticed between |
@adidahiya What's the status on this? Is this free to pick up? Any advice on where to start? |
This is still open to PRs but it sounds like a tricky rule to implement correctly and keep in mind that it will be easy to use the ESLint version of this rule within the next few months (palantir/tslint#4534). |
Yeah, saw those updates recently. Will leave this in favour of ESLint. |
Closing due to deprecation timeline #210 |
Hello. When using ESlint with React I always enable the following rule:
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
I was not able to find the same kind of rule for tslint-react.
Thanks
The text was updated successfully, but these errors were encountered: