Sha256: 06ae515e5bfb7cea021c63da7524b4bf03767bfc0c3d930dcbb8321f6a0f22fc

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

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