File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 88# # ProjectTypes: drupal8,drupal9,drupal10
99# # ExecRaw: true
1010
11- if not yarn --cwd $DDEV_DOCROOT /core eslint --config .eslintrc.legacy.json > /dev/null; then
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 " $@ "
13+ else
1214 echo " eslint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT /core install'"
1315 exit 1
1416fi
15- yarn --cwd $DDEV_DOCROOT /core --config .eslintrc.legacy.json eslint ../modules/custom/ ** / * .js " $@ "
17+
Original file line number Diff line number Diff line change 88# # ProjectTypes: drupal8,drupal9,drupal10
99# # ExecRaw: true
1010
11- if yarn --cwd $DDEV_DOCROOT /core stylelint --config ./.stylelintrc.json ../modules/custom/ ** / * .css > /dev/null ; then
12- yarn --cwd $DDEV_DOCROOT /core --formatter verbose -- config ./.stylelintrc.json ../modules/custom/** /* .css --color " $@ "
11+ if yarn --cwd $DDEV_DOCROOT /core stylelint --version > /dev/null ; then
12+ yarn --color -- cwd $DDEV_DOCROOT /core --config ./.stylelintrc.json ../modules/custom/** /* .css " $@ "
1313else
1414 echo " stylelint is not available. You may need to 'ddev yarn --cwd $DDEV_DOCROOT /core install'"
1515 exit 1
Original file line number Diff line number Diff line change @@ -30,4 +30,8 @@ teardown() {
3030 ddev phpcs --version
3131 ls -al web/modules/custom/${PROJNAME} /tests
3232 ddev phpunit --version
33+ ddev yarn --cwd web/core install
34+ ddev exec touch web/core/.env
35+ ddev stylelint --version
36+ ddev eslint --version
3337}
You can’t perform that action at this time.
0 commit comments