Class: ERBLint::Linters::CloseButtonComponentMigrationCounter
- Inherits:
-
BaseLinter
- Object
- Linter
- BaseLinter
- ERBLint::Linters::CloseButtonComponentMigrationCounter
- Includes:
- Autocorrectable, Helpers::RubocopHelpers
- Defined in:
- lib/primer/view_components/linters/close_button_component_migration_counter.rb
Overview
Counts the number of times a HTML clipboard-copy is used instead of the component.
Constant Summary collapse
- TAGS =
%w[button].freeze
- CLASSES =
%w[close-button].freeze
- MESSAGE =
"We are migrating close-button to use [Primer::Beta::CloseButton](https://primer.style/view-components/components/beta/closebutton), please try to use that instead of raw HTML."
- ARGUMENT_MAPPER =
ArgumentMappers::CloseButton
- COMPONENT =
"Primer::Beta::CloseButton"
- ALLOWED_OCTICON_ARGS =
%w[icon aria-label aria].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 included from Helpers::RubocopHelpers
Methods included from Autocorrectable
Methods inherited from BaseLinter
Methods included from Helpers::RuleHelpers
#erb_nodes, #extract_ruby_from_erb_node, #generate_node_offense, #generate_offense, #tags