From cd82a5d6f028d33e6a208fa0e50a594c385431a9 Mon Sep 17 00:00:00 2001 From: CatalinVoineag <11318084+CatalinVoineag@users.noreply.github.com> Date: Fri, 22 Dec 2023 16:07:50 +0000 Subject: [PATCH] Synch bin/lint prettier command to the one in CI --- app/helpers/routes_helper.rb | 6 +++--- bin/lint | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb index 40d26aabcd..aed03e2c74 100644 --- a/app/helpers/routes_helper.rb +++ b/app/helpers/routes_helper.rb @@ -2,21 +2,21 @@ module RoutesHelper def root_path { claims: claims_root_path, - placements: placements_root_path, + placements: placements_root_path }.fetch current_service end def support_root_path { claims: root_path, # TODO: claims support path in another PR - placements: placements_support_root_path, + placements: placements_support_root_path }.fetch current_service end def organisation_index_path { claims: claims_organisations_path, - placements: placements_organisations_path, + placements: placements_organisations_path }.fetch current_service end end diff --git a/bin/lint b/bin/lint index b8f427a9f6..eb34daf195 100755 --- a/bin/lint +++ b/bin/lint @@ -1,5 +1,5 @@ #!/bin/sh bin/bundle exec rubocop --autocorrect-all -yarn prettier --write --ignore-unknown '**/*' +yarn prettier --write app bin/bundle exec erblint --lint-all --autocorrect