Skip to content

Commit 46dacc8

Browse files
Use same eslint config as GitLab (#90)
1 parent dfa4d3b commit 46dacc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/web/eslint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if "$DDEV_DOCROOT/core/node_modules/.bin/eslint" --version >/dev/null ; then
1313
test -e .prettierignore || echo '*.yml' > .prettierignore
1414
# Change directory to the project root folder
1515
cd "$DDEV_DOCROOT/modules/custom/${DDEV_SITENAME//-/_}" || exit
16-
"$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 . "$@"
16+
"$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/node_modules/.bin/eslint" --config="../../../core/.eslintrc.passing.json" --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core --ext=.js,.yml . "$@"
1717
else
1818
echo "eslint is not available. You may need to 'ddev exec \"cd $DDEV_DOCROOT/core && yarn install\"'"
1919
exit 1

0 commit comments

Comments
 (0)