bin/pa11y-ci.js
function defaultConfig(config) {
	config.urls = config.urls || [];
	config.defaults = config.defaults || {};
	config.defaults.log = config.defaults.log || console;
	// 	Setting to undefined rather than 0 allows for a fallback to the default
	config.defaults.wrapWidth = process.stdout.columns || undefined;
	if (program.json) {
		delete config.defaults.log;
	}
	return config;
}
function defaultConfig(config) {
	config.urls = config.urls || [];
	config.defaults = config.defaults || {};
	config.defaults.log = config.defaults.log || console;
	// 	Setting to undefined rather than 0 allows for a fallback to the default
	config.defaults.wrapWidth = process.stdout.columns || undefined;
	if (program.json) {
		delete config.defaults.log;
	}
	return config;
}
function defaultConfig ( config ) { config . urls = config . urls || [ ] ; config . defaults = config . defaults || { } ; config . defaults . log = config . defaults . log || console ; // 	Setting to undefined rather than 0 allows for a fallback to the default config . defaults . wrapWidth = process . stdout . columns || undefined ; if ( program . json ) { delete config . defaults . log ; } return config ; }
Tidy up and default the configurations found in the file the user specified.
Tidy up and default the configurations found in the file the user specified .