Sha256: e0e0179c7454a922eab792f349dd16dc77f5ab05e83ea83fd6e02ec4a3b7d63f

Contents?: true

Size: 476 Bytes

Versions: 22

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require "primer/deprecations"

module ERBLint
  module Linters
    module Helpers
      # Helpers to share between DeprecatedComponents ERB lint and Rubocop cop
      module DeprecatedComponentsHelpers
        def message(component_name)
          Primer::Deprecations.deprecation_message(component_name)
        end

        def deprecated_components
          Primer::Deprecations.deprecated_components
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
primer_view_components-0.2.0 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.9 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.8 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.7 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.6 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.5 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.4 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.3 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.2 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.1 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.1.0 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.123 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.122 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.121 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.120 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.119 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.118 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.117 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.116 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
primer_view_components-0.0.115 lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb