Sha256: 43c26edbd2c84bd9a00c34d410ab1a9a145d839060d0726b338be5f58485bcb2

Contents?: true

Size: 513 Bytes

Versions: 173

Compression:

Stored size: 513 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/view-components/components/beta/blankslate), please try to use that instead of raw HTML."
      CLASSES = %w[blankslate].freeze
      TAGS = %w[div].freeze
    end
  end
end

Version data entries

173 entries across 173 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.36.2 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.36.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.36.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.27.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.35.2 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.35.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.26.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.35.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.26.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.34.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.33.2 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.33.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.33.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.25.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.32.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.32.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.29.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.29.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.23.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
openproject-primer_view_components-0.28.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb