plugins/best-match.js
function getClosestVersion() {
	if (!process.versions.v8) {
		// Assume compatibility with Node.js 8.9.4
		return 'v8-6.1';
	}

	const v8 = parseFloat(process.versions.v8);
	if (v8 >= 6.6) {
		return 'v8-6.6';
	}

	if (v8 >= 6.2) {
		return 'v8-6.2';
	}

	return 'v8-6.1';
}
function getClosestVersion() {
	if (!process.versions.v8) {
		// Assume compatibility with Node.js 8.9.4
		return 'v8-6.1';
	}

	const v8 = parseFloat(process.versions.v8);
	if (v8 >= 6.6) {
		return 'v8-6.6';
	}

	if (v8 >= 6.2) {
		return 'v8-6.2';
	}

	return 'v8-6.1';
}
function getClosestVersion ( ) { if ( ! process . versions . v8 ) { // Assume compatibility with Node.js 8.9.4 return 'v8-6.1' ; } const v8 = parseFloat ( process . versions . v8 ) ; if ( v8 >= 6.6 ) { return 'v8-6.6' ; } if ( v8 >= 6.2 ) { return 'v8-6.2' ; } return 'v8-6.1' ; }
eslint-disable-line node/prefer-global/process
eslint - disable - line node / prefer - global / process