Sha256: a5a118f053f591dbec6fe1c47c00fd7ba1534d0d63aa9e88d86311bac3d5443b

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require_relative "helpers"

module ERBLint
  module Linters
    # Counts the number of times a HTML clipboard-copy is used instead of the component.
    class CloseButtonComponentMigrationCounter < Linter
      include Helpers

      TAGS = %w[button].freeze
      CLASSES = %w[close-button].freeze
      MESSAGE = "We are migrating close-button to use [Primer::CloseButton](https://primer.style/view-components/components/closebutton), please try to use that instead of raw HTML."
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
primer_view_components-0.0.52 lib/primer/view_components/linters/close_button_component_migration_counter.rb
primer_view_components-0.0.51 lib/primer/view_components/linters/close_button_component_migration_counter.rb
primer_view_components-0.0.50 lib/primer/view_components/linters/close_button_component_migration_counter.rb