How to set configValidationMode: error

how can I set configValidationMode to error?

Deprecation warning: Starting with next major, Serverless will throw on configuration errors by default. Adapt to this behavior now by adding “configValidationMode: error” to service configuration
More Info: https://www.serverless.com/framework/docs/deprecations/#CONFIG_VALIDATION_MODE_DEFAULT