Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
React/declarations for function components #2414
This is just draft of how I would like it to work. Any feedback would be much appreciated.
This pull request was inspired by #690
ljharb left a comment
Thanks, this is a great start!
It'd be really nice if this could be autofixable. Things to watch out for in the fixers include:
Does autofix take typescript into account at all? I imagine autofixing a functional component that is defined like so:
would lead to unintentional side effects. Should eslint-plugin-react care about this? @ljharb