{"size": 427, "ext": "js", "max_stars_repo_path": "website/src/components/live-demo/utils.js", "max_stars_repo_name": "maaft/graphql-code-generator", "max_stars_repo_stars_event_min_datetime": "2016-12-12T22:44:15.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T13:47:28.000Z", "max_issues_repo_path": "website/src/components/live-demo/utils.js", "max_issues_repo_name": "maaft/graphql-code-generator", "max_issues_repo_issues_event_min_datetime": "2016-12-12T22:25:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T15:59:48.000Z", "max_forks_repo_path": "website/src/components/live-demo/utils.js", "max_forks_repo_name": "maaft/graphql-code-generator", "max_forks_repo_forks_event_min_datetime": "2016-12-27T10:28:33.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T20:27:41.000Z"}
{"max_stars_count": 8811, "max_issues_count": 5212, "max_forks_count": 1161, "avg_line_length": 35.5833333333, "max_line_length": 113, "alphanum_fraction": 0.5807962529}
export function normalizeConfig(config) {
  if (typeof config === 'string') {
    return [{ [config]: {} }];
  } else if (Array.isArray(config)) {
    return config.map(plugin => (typeof plugin === 'string' ? { [plugin]: {} } : plugin));
  } else if (typeof config === 'object') {
    return Object.keys(config).reduce((prev, pluginName) => [...prev, { [pluginName]: config[pluginName] }], []);
  } else {
    return [];
  }
}
