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