Skip to content

Commit decf674

Browse files
committed
Update eslint command
1 parent 783478f commit decf674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/web/eslint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
## ProjectTypes: drupal8,drupal9,drupal10
99
## ExecRaw: true
1010

11-
if yarn --cwd "$DDEV_DOCROOT/core" eslint --version >/dev/null ; then
12-
yarn --cwd "$DDEV_DOCROOT/core" --config .eslintrc.legacy.json eslint ../modules/custom/**/*.js "$@"
11+
if "$DDEV_DOCROOT/core/node_modules/.bin/eslint" --version >/dev/null ; then
12+
"$DDEV_DOCROOT/core/node_modules/.bin/eslint" --no-error-on-unmatched-pattern --ignore-pattern "*.es6.js" --config "$DDEV_DOCROOT/core/.eslintrc.legacy.json" --resolve-plugins-relative-to "$DDEV_DOCROOT/core" "$DDEV_DOCROOT/modules/custom/**/*.js"
1313
else
1414
echo "eslint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'"
1515
exit 1

0 commit comments

Comments
 (0)