Class: ERBLint::Linters::FlashComponentMigrationCounter

Inherits:
Linter
  • Object
show all
Includes:
Helpers
Defined in:
lib/primer/view_components/linters/flash_component_migration_counter.rb

Overview

Counts the number of times a HTML flash is used instead of the component.

Constant Summary collapse

TAGS =
%w[div].freeze
CLASSES =
%w[flash].freeze
MESSAGE =
"We are migrating flashes to use [Primer::FlashComponent](https://primer.style/view-components/components/flash), please try to use that instead of raw HTML."

Constants included from Helpers

Helpers::SELF_CLOSING_TAGS

Method Summary

Methods included from Helpers

included