Sha256: e4ab6bf0140da54a3240d44386e2f1c66c4ef35ae30f465b0a7834c50ad0e7e5

Contents?: true

Size: 503 Bytes

Versions: 28

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

require_relative "base_linter"

module ERBLint
  module Linters
    # Counts the number of times a HTML Blankslate is used instead of the component.
    class BlankslateComponentMigrationCounter < BaseLinter
      MESSAGE = "We are migrating Blankslate to use [Primer::Beta::Blankslate](https://primer.style/components/blankslate/rails/beta), please try to use that instead of raw HTML."
      CLASSES = %w[blankslate].freeze
      TAGS = %w[div].freeze
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.47.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.47.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.34.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.46.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.46.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.45.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.33.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb