Skip to content

Commit

Permalink
Synch bin/lint prettier command to the one in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CatalinVoineag committed Dec 22, 2023
1 parent 19fd4a6 commit cd82a5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/helpers/routes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion bin/lint
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cd82a5d

Please sign in to comment.