{"size": 481, "ext": "js", "max_stars_repo_path": "src/getConfigFilePath.js", "max_stars_repo_name": "CollinEstes/astro-jscs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/getConfigFilePath.js", "max_issues_repo_name": "CollinEstes/astro-jscs", "max_issues_repo_issues_event_min_datetime": "2015-07-03T13:13:13.000Z", "max_issues_repo_issues_event_max_datetime": "2015-07-03T13:13:13.000Z", "max_forks_repo_path": "src/getConfigFilePath.js", "max_forks_repo_name": "CollinEstes/astro-jscs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.24, "max_line_length": 84, "alphanum_fraction": 0.6881496881}
/**
*
* getIgnoreFilePath.js - gets the .jscsrc file of the project
*
**/
var path = require('path')
	, fs = require('fs')
	;

var checkForProjectFile = require('./checkForProjectFile.js');

function getDefault () {
	return path.join(path.dirname(fs.realpathSync(__filename)), '../defaults/.jscsrc');
}

module.exports = function (projectDir) {
	var jscsConfig = checkForProjectFile(projectDir, '.jscsrc')
		;

	if (jscsConfig) {
		return jscsConfig;
	}

	return getDefault();
}();