lib/pre-commit/pre-commit-base.js
function getConfig(file) {
	var config = {},
		subConfig;
	try {
		config = JSON.parse(fs.readFileSync(file, "utf8"));
		if (config.extends) {
			subConfig = JSON.parse(fs.readFileSync(config.extends, "utf8"));
			util._extend(subConfig, config);
			delete subConfig.extends;
			config = subConfig;
		}
	} catch (e) {
		// empty
	}
	return config;
}
function getConfig(file) {
	var config = {},
		subConfig;
	try {
		config = JSON.parse(fs.readFileSync(file, "utf8"));
		if (config.extends) {
			subConfig = JSON.parse(fs.readFileSync(config.extends, "utf8"));
			util._extend(subConfig, config);
			delete subConfig.extends;
			config = subConfig;
		}
	} catch (e) {
		// empty
	}
	return config;
}
Get a JSON based config file
@param {String} file
@returns {Object}