Class: ERBLint::Linters::BreadcrumbsComponentMigrationCounter

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

Overview

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

Constant Summary collapse

MESSAGE =
"We are migrating breadcrumbs to use [Yattho::Breadcrumbs](https://yattho.com/view-components/components/beta/breadcrumbs), please try to use that instead of raw HTML."
CLASSES =
%w[breadcrumb-item breadcrumb-item-selected].freeze
TAGS =
%w[li].freeze

Constants inherited from BaseLinter

ERBLint::Linters::BaseLinter::DISALLOWED_CLASSES, ERBLint::Linters::BaseLinter::DUMP_FILE, ERBLint::Linters::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?