From b475fa268b8fa66cd884dbe4130089d8bde1b9df Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Fri, 16 Aug 2024 18:56:18 +1000 Subject: [PATCH] Added `ahoy lint-be-fix` and `ahoy lint-fe-fix` commands. --- .ahoy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ahoy.yml b/.ahoy.yml index ae00fccea..d14af7265 100644 --- a/.ahoy.yml +++ b/.ahoy.yml @@ -196,10 +196,19 @@ commands: lint-fix: usage: Fix lint issues of back-end and front-end code. + cmd: ahoy lint-be-fix && ahoy lint-fe-fix + + lint-be-fix: + usage: Fix lint issues of back-end code. cmd: | ahoy cli vendor/bin/rector --clear-cache ahoy cli vendor/bin/phpcbf + + lint-fe-fix: + usage: Fix lint issues of front-end code. + cmd: | ahoy cli vendor/bin/twig-cs-fixer lint --fix + ahoy cli "npm run --prefix \${DREVOPS_WEBROOT}/themes/custom/\${DRUPAL_THEME} lint-fix" test: usage: Run all tests.