Class: ERBLint::Linters::FlashComponentMigrationCounter
- Inherits:
-
Linter
- Object
- Linter
- ERBLint::Linters::FlashComponentMigrationCounter
- 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."