Class: ERBLint::Linters::LabelComponentMigrationCounter
- Inherits:
-
BaseLinter
- Object
- Linter
- BaseLinter
- ERBLint::Linters::LabelComponentMigrationCounter
- Includes:
- Autocorrectable
- Defined in:
- lib/yattho/view_components/linters/label_component_migration_counter.rb
Overview
Counts the number of times a HTML label is used instead of the component.
Constant Summary collapse
- 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"
Constants inherited from BaseLinter
BaseLinter::DISALLOWED_CLASSES, BaseLinter::DUMP_FILE, BaseLinter::REQUIRED_ARGUMENTS
Constants included from TagTreeHelpers
TagTreeHelpers::SELF_CLOSING_TAGS
Method Summary
Methods included from Autocorrectable
#correction, #map_arguments, #message