quero-edu / guidelines

📘 The definitive Quero Education code-style guide.
MIT License
22 stars 2 forks source link

Forbid certain propTypes (react/forbid-prop-types) #69

Open leonardobrito opened 2 years ago

leonardobrito commented 2 years ago

Adicionar essa regra de lint para evitar props vagas:

By default this rule prevents vague prop types with more specific alternatives available (any, array, object), but any prop type can be disabled if desired. The defaults are chosen because they have obvious replacements. any should be replaced with, well, anything. array and object can be replaced with arrayOf and shape, respectively.

Comentado nessa discussão sobre: https://github.com/quero-edu/checkout-client/pull/127#discussion_r802761012