# frozen_string_literal: true

Rails.application.configure do
  config.view_component.preview_paths << Rails.root.join('app/components')

  # As we use ViewComponentContrib, these tag no longer matters
  # But this is the config we are using internally
  config.generators.test_framework = :rspec
  config.view_component.generate.stimulus_controller = true
  config.view_component.generate.locale = true
  config.view_component.generate.preview = true
  config.view_component.generate.sidecar = true
end
