Sha256: 54eb1a7af4625750e19e2bc342728a8f0a7e475b3d6b7683f963dc4cc69e2f69
Contents?: true
Size: 498 Bytes
Versions: 9
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true require_relative "helpers" module ERBLint module Linters # Counts the number of times a HTML flash is used instead of the component. class FlashComponentMigrationCounter < Linter include Helpers 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." end end end
Version data entries
9 entries across 9 versions & 1 rubygems