function invalid(code, output, type, line, config) {
	const result = {
		code,
		output,
		languageOptions: (config && config.languageOptions) || {},
		errors: [
			{
				messageId: "unexpected",
				type,
			},
		],
		options: (config && config.options) || [],
	};

	if (line) {
		result.errors[0].line = line;
	}
	return result;
}
Create error message object for failure cases
@param {string} code source code
@param {string} output fixed source code
@param {string} type node type
@param {number} line line number
@param {Object} config rule configuration
@returns {Object} result object
@private