Sha256: 0b881b2e2ef0d2f44364a30233ac18ef7ce3df37c9c1a36e6b5b27a2cb7e2313

Contents?: true

Size: 490 Bytes

Versions: 145

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

require_relative "base_linter"

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

Version data entries

145 entries across 145 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.47.1 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.47.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
primer_view_components-0.34.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.46.1 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.46.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.45.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.44.3 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.44.2 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.44.1 lib/primer/view_components/linters/subhead_component_migration_counter.rb
primer_view_components-0.33.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.44.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.43.1 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.43.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
primer_view_components-0.32.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.42.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
primer_view_components-0.31.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.41.1 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.41.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb
openproject-primer_view_components-0.40.0 lib/primer/view_components/linters/subhead_component_migration_counter.rb