Sha256: 8872c9d7d4adc0f6933b5908dcacb5b47955742b532a8640312ed0c95b289cd1

Contents?: true

Size: 541 Bytes

Versions: 203

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

require_relative "base_linter"

module ERBLint
  module Linters
    # Counts the number of times a HTML breadcrumbs is used instead of the component.
    class BreadcrumbsComponentMigrationCounter < BaseLinter
      MESSAGE = "We are migrating breadcrumbs to use [Primer::Breadcrumbs](https://primer.style/view-components/components/beta/breadcrumbs), please try to use that instead of raw HTML."
      CLASSES = %w[breadcrumb-item breadcrumb-item-selected].freeze
      TAGS = %w[li].freeze
    end
  end
end

Version data entries

203 entries across 203 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.33.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.25.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.32.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.32.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.29.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.29.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.23.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.28.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.28.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.27.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.26.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.25.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.22.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.21.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.25.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.24.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.21.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.20.1 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
primer_view_components-0.20.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb
openproject-primer_view_components-0.23.0 lib/primer/view_components/linters/breadcrumbs_component_migration_counter.rb