We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 783478f commit decf674Copy full SHA for decf674
commands/web/eslint
@@ -8,8 +8,8 @@
8
## ProjectTypes: drupal8,drupal9,drupal10
9
## ExecRaw: true
10
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 "$@"
+if "$DDEV_DOCROOT/core/node_modules/.bin/eslint" --version >/dev/null ; then
+ "$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"
13
else
14
echo "eslint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT/core install'"
15
exit 1
0 commit comments