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
primer_view_components-0.1.9 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.8 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.7 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.6 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.5 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.4 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.3 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.2 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.1 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.1.0 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.123 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.122 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.121 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.120 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.119 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.118 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.117 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.116 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.115 lib/primer/view_components/linters/blankslate_component_migration_counter.rb
primer_view_components-0.0.114 lib/primer/view_components/linters/blankslate_component_migration_counter.rb