Class: ERBLint::Linters::ButtonComponentMigrationCounter
- Inherits:
-
Linter
- Object
- Linter
- ERBLint::Linters::ButtonComponentMigrationCounter
- Includes:
- Helpers
- Defined in:
- lib/primer/view_components/linters/button_component_migration_counter.rb
Overview
Counts the number of times a HTML button is used instead of the component.
Constant Summary collapse
- TAGS =
%w[button summary a].freeze
- CLASSES =
%w[btn btn-link].freeze
- MESSAGE =
"We are migrating buttons to use [Primer::ButtonComponent](https://primer.style/view-components/components/button), please try to use that instead of raw HTML."