From 712c373e949e0aa10278dcdc100b01b1f014ffae Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Mon, 7 Oct 2024 15:48:26 -0300 Subject: [PATCH] fix: eslint/styleint not available error message (#82) --- commands/web/eslint | 2 +- commands/web/stylelint | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/web/eslint b/commands/web/eslint index d800dd7..9dd3ad2 100755 --- a/commands/web/eslint +++ b/commands/web/eslint @@ -15,6 +15,6 @@ if "$DDEV_DOCROOT/core/node_modules/.bin/eslint" --version >/dev/null ; then cd "$DDEV_DOCROOT/modules/custom/$DDEV_SITENAME" || exit "$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/node_modules/.bin/eslint" --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core --ext=.js,.yml . "$@" else - echo "eslint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'" + echo "eslint is not available. You may need to 'ddev exec \"cd web/core && yarn install\"'" exit 1 fi diff --git a/commands/web/stylelint b/commands/web/stylelint index d7d43f4..df0032c 100755 --- a/commands/web/stylelint +++ b/commands/web/stylelint @@ -10,6 +10,6 @@ if yarn --cwd "$DDEV_DOCROOT/core" stylelint --version >/dev/null ; then yarn --color --cwd "$DDEV_DOCROOT/core" --config ./.stylelintrc.json stylelint ../modules/custom/**/*.css "$@" else - echo "stylelint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'" + echo "stylelint is not available. You may need to 'ddev exec \"cd web/core && yarn install\"'" exit 1 fi