Class: ERBLint::Linters::SubheadComponentMigrationCounter

Inherits:
BaseLinter
  • Object
show all
Defined in:
lib/yattho/view_components/linters/subhead_component_migration_counter.rb

Overview

Counts the number of times a HTML Subhead is used instead of the component.

Constant Summary collapse

MESSAGE =
"We are migrating Subhead to use [Yattho::Beta::Subhead](https://yattho.com/view-components/components/subhead), please try to use that instead of raw HTML."
CLASSES =
%w[Subhead].freeze
TAGS =
%w[div].freeze

Constants inherited from BaseLinter

BaseLinter::DISALLOWED_CLASSES, BaseLinter::DUMP_FILE, BaseLinter::REQUIRED_ARGUMENTS

Constants included from TagTreeHelpers

TagTreeHelpers::SELF_CLOSING_TAGS

Method Summary

Methods inherited from BaseLinter

#autocorrect, inherited, #run

Methods included from TagTreeHelpers

#build_tag_tree, #self_closing?