Sha256: e4b2f2b84700cbe889f5d353bf5c691c51c8ba1a441192164f7dfa1691493ff5

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

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