function expectedErrors(providedIndentType, providedErrors) {
	let indentType;
	let errors;

	if (Array.isArray(providedIndentType)) {
		errors = Array.isArray(providedIndentType[0])
			? providedIndentType
			: [providedIndentType];
		indentType = "space";
	} else {
		errors = Array.isArray(providedErrors[0])
			? providedErrors
			: [providedErrors];
		indentType = providedIndentType;
	}

	return errors.map(err => ({
		messageId: "expected",
		data: {
			expected:
				typeof err[1] === "string" && typeof err[2] === "string"
					? err[1]
					: `${err[1]} ${indentType}${err[1] === 1 ? "" : "s"}`,
			actual: err[2],
		},
		type: err[3],
		line: err[0],
	}));
}
Create error message object for failure cases with a single 'found' indentation type
@param {string} providedIndentType indent type of string or tab
@param {Array} providedErrors error info
@returns {Object} returns the error messages collection
@private