function configureAsError(rules) {
  return fromEntries(Object.keys(rules).map((key) => [`react/${key}`, 2]));
}
@param {object} rules - rules object mapping rule name to rule module
@returns {Record<string, SEVERITY_ERROR | 'error'>}