Skip to content
Snippets Groups Projects
Commit 706fcd36 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for eslint

parent bacf98ea
No related branches found
No related tags found
1 merge request!12Merging develop into main
Pipeline #1060846 passed
......@@ -84,3 +84,12 @@ commands:
shift
/usr/local/bin/node_cmd yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json "../modules/contrib/${module}/**/*.css" --color
usage: Stylelint tests by module
eslintmodule:
cmd: |
module=$1
shift
cd web/modules/contrib/$module
test -e .prettierrc.json || ln -s /drupal/web/core/.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