function enable(context, loc, group, rule) {
  if (rule) {
    context.report({
      loc,
      messageId: group === 'block' ? 'enableBlockRule' : 'enableLineRule',
      data: { rule }
    })
  } else {
    context.report({
      loc,
      messageId: group === 'block' ? 'enableBlock' : 'enableLine'
    })
  }
}
Enable rules.
@param {RuleContext} context The rule context.
@param {{line:number,column:number}} loc The location information to enable.
@param { 'block' | 'line' } group The group to enable.
@param {string | null} rule The rule ID to enable.
@returns {void}