Skip to content
Snippets Groups Projects
Commit 27c1e022 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix eslint test to be the same as on drupal.org

parent 05411b05
No related branches found
No related tags found
1 merge request!30Merging develop into main
Pipeline #1321032 failed
......@@ -94,7 +94,9 @@ commands:
module=$1
shift
cd web/modules/contrib/$module
test -e .prettierrc.json || ln -s /drupal/web/core/.prettierrc.json .
test -e .eslintrc.json || ln -s ../../../core/.eslintrc.passing.json .eslintrc.json
test -e .eslintrc.jquery.json || ln -s ../../../core/.eslintrc.jquery.json .eslintrc.jquery.json
test -e .prettierrc.json || ln -s ../../../core/.prettierrc.json .prettierrc.json
test -e .prettierignore || echo '*.yml' > .prettierignore
/drupal/web/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=/drupal/web/core --ext=.js,.yml . $@
usage: Eslint tests by module
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment