Class: ERBLint::Linters::SubheadComponentMigrationCounter
- Inherits:
 - 
      BaseLinter
      
        
- Object
 - Linter
 - BaseLinter
 - ERBLint::Linters::SubheadComponentMigrationCounter
 
 
- Defined in:
 - lib/primer/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 [Primer::Beta::Subhead](https://primer.style/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
Methods included from Helpers::RuleHelpers
#erb_nodes, #extract_ruby_from_erb_node, #generate_node_offense, #generate_offense, #tags