Closed
Description
- Rollup Plugin Name: all
- Rollup Plugin Version: current
Feature Use Case
We have a lot of code in different plugins - and then none at all in many - which attempts to validate plugin options in various different ways. Unifying how plugin options are validated, asserting that they'r validated in each plugin, and unifying messaging around invalid options would be a benefit to users and maintenance alike.
Feature Proposal
I'd like to propose @hapi/joi
for this purpose. I have some experience using that and working with their community and it was pretty smooth. Of course, open to suggestions. Using pluginutils
, we can create a common API to facilitate this.