function normalizeRuleOptions(ruleOptions) {
	const finalOptions = Array.isArray(ruleOptions)
		? ruleOptions.slice(0)
		: [ruleOptions];

	finalOptions[0] = ruleSeverities.get(finalOptions[0]);
	return structuredClone(finalOptions);
}
Normalizes the rule options config for a given rule by ensuring that
it is an array and that the first item is 0, 1, or 2.
@param {Array|string|number} ruleOptions The rule options config.
@returns {Array} An array of rule options.