facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 356 forks source link

Proptypes killswitch / error suppression #266

Open nruhe opened 5 years ago

nruhe commented 5 years ago

Hello! I'm currently working in a code base that is mid-refactor. Unfortunately, we've used propTypes poorly in the past and my console is being swarmed with warnings that are obfuscating important debug errors. Is there any way to suppress all propType warnings temporarily without setting the env to prod?

ljharb commented 5 years ago

Nope. My suggestion is to, one at a time, fix the propType warnings, until they're gone.