Class: ERBLint::Linters::SelectMenuMigrationCounter
- Inherits:
-
BaseLinter
- Object
- Linter
- BaseLinter
- ERBLint::Linters::SelectMenuMigrationCounter
- Defined in:
- lib/primer/view_components/linters/select_menu_migration_counter.rb
Overview
Counts the number of times a HTML SelectMenu is used instead of the SelectPanel component.
Constant Summary collapse
- MESSAGE =
"Please use the [Primer::Alpha::SelectPanel](https://primer.style/components/selectpanel/rails/alpha) component instead of SelectMenu."
- CLASSES =
["SelectMenu", /\ASelectMenu-.*/].freeze
- TAGS =
[].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