function getRegexppEcmaVersion(ecmaVersion) {
			if (ecmaVersion <= 5) {
				return 5;
			}
			return Math.min(ecmaVersion, REGEXPP_LATEST_ECMA_VERSION);
		}
Returns a ecmaVersion compatible for regexpp.
@param {number} ecmaVersion The ecmaVersion to convert.
@returns {import("@eslint-community/regexpp/ecma-versions").EcmaVersion} The resulting ecmaVersion compatible for regexpp.