Sha256: 3974d03daaffb9ba78be9d741d96f9f6fa41eaca89c0e6106c3c98cb90ccf733

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 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 [Yattho::Breadcrumbs](https://yattho.com/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

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 lib/yattho/view_components/linters/breadcrumbs_component_migration_counter.rb
yattho_view_components-0.0.1 lib/yattho/view_components/linters/breadcrumbs_component_migration_counter.rb