class ERBLint::Linters::ArgumentMappers::Button

def attribute_to_args(attribute)

def attribute_to_args(attribute)
  attr_name = attribute.name
  case attr_name
  when "disabled"
    { disabled: true }
  when "type"
    # button is the default type, so we don't need to do anything.
    return {} if attribute.value == "button"
    raise ConversionError, "Button component does not support type \"#{attribute.value}\"" unless TYPE_OPTIONS.include?(attribute.value)
    { type: ":#{attribute.value}" }
  else
    { attr_name.to_sym => erb_helper.convert(attribute) }
  end
end