function shouldMessageBeFixed(message, config, fixTypes) {
	if (!message.ruleId) {
		return fixTypes.has("directive");
	}

	const rule = message.ruleId && config.getRuleDefinition(message.ruleId);

	return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type));
}
Checks whether a message's rule type should be fixed.
@param {LintMessage} message The message to check.
@param {FlatConfigArray} config The config for the file that generated the message.
@param {string[]} fixTypes An array of fix types to check.
@returns {boolean} Whether the message should be fixed.