validateConfig = (config) => ({
  warnings: flushMessages(deprecatedOptions, config),
  errors: flushMessages(unsupportedOptions, config),
})
Returns the errors and warnings relative to the given config.