util.js
function isErrorMessage(message) {
	const level = message.fatal ? 2 : message.severity;

	if (Array.isArray(level)) {
		return level[0] > 1;
	}

	return level > 1;
}
function isErrorMessage(message) {
	const level = message.fatal ? 2 : message.severity;

	if (Array.isArray(level)) {
		return level[0] > 1;
	}

	return level > 1;
}
function isErrorMessage ( message ) { const level = message . fatal ? 2 : message . severity ; if ( Array . isArray ( level ) ) { return level [ 0 ] > 1 ; } return level > 1 ; }
Determine if a message is an error

@param {Object} message - an ESLint message
@returns {Boolean} whether the message is an error message
Determine if a message is an error