kentcdodds / webpack-validator-DEPRECATED

Use this to save yourself some time when working on a webpack configuration.
MIT License
93 stars 8 forks source link

Allow disabling validators #50

Open jonathanglasmeyer opened 8 years ago

jonathanglasmeyer commented 8 years ago

The user should be able to disable validators, for example if they throw false positives and thus cause breakage in CI pipelines, or if the user is knowingly using some edge case for which we emit warnings.

For this we need basic configurability, from the cli side per command line flags or dotfile, or programmatically via an options object passed to the validate function.

A minimal implementation could look like disabledValidators: ['module.loaders', 'resolve']. Thoughts?

kentcdodds commented 8 years ago

There could be multiple validators for the same key (third party or custom validators). So I suggest that we come up with some other unique identifier for these validators...