# frozen_string_literal: true require_relative "base_linter" require_relative "autocorrectable" require_relative "argument_mappers/label" module ERBLint module Linters # Counts the number of times a HTML label is used instead of the component. class LabelComponentMigrationCounter < BaseLinter include Autocorrectable TAGS = Yattho::ViewComponents::Constants.get( component: "Yattho::Beta::Label", constant: "TAG_OPTIONS" ).freeze CLASSES = %w[Label].freeze MESSAGE = "We are migrating labels to use [Yattho::Beta::Label](https://yattho.com/view-components/components/label), please try to use that instead of raw HTML." ARGUMENT_MAPPER = ArgumentMappers::Label COMPONENT = "Yattho::Beta::Label" end end end