Document that rules dealing with prop types recognize static types, too #2546
silvenon left a comment •
Ok, I think I found all the rules which recognize static types and I added a message to make this clear. Let me know if you don't like the blockquote formatting, one alternative could be to use horizontal rules, but that would maybe be too dramatic.
I also tried to use more agnostic language instead of "
These examples use `createReactClass` a lot, which is legacy at this point. I'm modifying examples to primarily use function components because those are the ones people are using most often today. Other ways of defining a component are just here to show that this rule recognizes them, too. Also, document that rules like `prop-types` and `require-default-props` recognize static types, too