Class: ERBLint::Linters::ButtonComponentMigrationCounter

Inherits:
Linter
  • Object
show all
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."

Constants included from Helpers

Helpers::SELF_CLOSING_TAGS

Method Summary

Methods included from Helpers

included