{"size": 1327, "ext": "js", "max_stars_repo_path": "docs/src/_data/eslintVersion.js", "max_stars_repo_name": "sthagen/eslint-eslint", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/src/_data/eslintVersion.js", "max_issues_repo_name": "sthagen/eslint-eslint", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/src/_data/eslintVersion.js", "max_forks_repo_name": "sthagen/eslint-eslint", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.9142857143, "max_line_length": 79, "alphanum_fraction": 0.4642049736}
/**
 * @fileoverview Data file for package information
 * @author Nicholas C. Zakas
 */

//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------

const fs = require("fs");
const path = require("path");

//-----------------------------------------------------------------------------
// Initialization
//-----------------------------------------------------------------------------

const pkgPath = path.resolve(__dirname, "../../../package.json");
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
const { ESLINT_VERSION } = process.env;

//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------

/*
 * Because we want to differentiate between the development branch and the 
 * most recent release, we need a way to override the version. The
 * ESLINT_VERSION environment variable allows us to set this to override
 * the value displayed on the website. The most common case is we will set
 * this equal to "HEAD" for the version that is currently in development on
 * GitHub. Otherwise, we will use the version from package.json.
 */

module.exports = ESLINT_VERSION ?? pkg.version;
