function assertIsRuleSeverity(ruleId, value) {
	const severity = ruleSeverities.get(value);

	if (typeof severity === "undefined") {
		throw new InvalidRuleSeverityError(ruleId, value);
	}
}
Validates that a value is valid rule severity.
@param {string} ruleId Rule name being configured.
@param {any} value The value to check.
@returns {void}
@throws {InvalidRuleSeverityError} If the value isn't a valid rule severity.