Sha256: 40bb4c66ff2957ae4348e5e6116f2be32c7b6f3cffd9137ec0536fa91dc9172b

Contents?: true

Size: 492 Bytes

Versions: 28

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

require_relative "base_linter"

module ERBLint
  module Linters
    # Counts the number of times a HTML SelectMenu is used instead of the SelectPanel component.
    class SelectMenuMigrationCounter < BaseLinter
      MESSAGE = "Please use the [Primer::Alpha::SelectPanel](https://primer.style/components/selectpanel/rails/alpha) component instead of SelectMenu."
      CLASSES = ["SelectMenu", /\ASelectMenu-.*/].freeze
      TAGS = [].freeze
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.52.2 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.36.4 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.52.1 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.52.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.36.3 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.51.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.36.2 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.50.1 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.50.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.36.1 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.36.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.49.2 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.35.2 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.49.1 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.49.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.35.1 lib/primer/view_components/linters/select_menu_migration_counter.rb
primer_view_components-0.35.0 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.48.2 lib/primer/view_components/linters/select_menu_migration_counter.rb
openproject-primer_view_components-0.48.1 lib/primer/view_components/linters/select_menu_migration_counter.rb