function getRuleFromConfig(ruleId, config) {
	const { pluginName, ruleName } = parseRuleId(ruleId);

	return config.plugins?.[pluginName]?.rules?.[ruleName];
}
Retrieves a rule instance from a given config based on the ruleId.
@param {string} ruleId The rule ID to look for.
@param {Linter.Config} config The config to search.
@returns {RuleDefinition|undefined} The rule if found
     or undefined if not.