Sha256: 0449efe768ef47a23e68aaba25dccda58b80c7c2070173052d31fa9ba7773d47
Contents?: true
Size: 768 Bytes
Versions: 60
Compression:
Stored size: 768 Bytes
Contents
# frozen_string_literal: true require_relative "base_linter" require_relative "autocorrectable" require_relative "argument_mappers/clipboard_copy" module ERBLint module Linters # Counts the number of times a HTML clipboard-copy is used instead of the component. class ClipboardCopyComponentMigrationCounter < BaseLinter include Autocorrectable TAGS = %w[clipboard-copy].freeze REQUIRED_ARGUMENTS = [/for|value/, "aria-label"].freeze MESSAGE = "We are migrating clipboard-copy to use [Primer::ClipboardCopy](https://primer.style/view-components/components/clipboardcopy), please try to use that instead of raw HTML." ARGUMENT_MAPPER = ArgumentMappers::ClipboardCopy COMPONENT = "Primer::ClipboardCopy" end end end
Version data entries
60 entries across 60 versions & 1 rubygems