Skip to content

Commit 693490d

Browse files
Copying eslint's copying of core's .prettierrc.json to stylelint (#148)
* Copying eslint's copying of core's .prettierrc.json to stylelint * remove prettierignore Co-authored-by: Jonathan Smith <jonathan1055@sandfordsolutions.com> --------- Co-authored-by: Jonathan Smith <jonathan1055@sandfordsolutions.com>
1 parent 3e1e379 commit 693490d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/web/stylelint

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
set -eu -o pipefail
1111

12-
if $DDEV_DOCROOT/core/node_modules/.bin/stylelint --version >/dev/null ; then
12+
if "$DDEV_DOCROOT/core/node_modules/.bin/stylelint" --version >/dev/null ; then
13+
# Configure prettier
14+
test -e .prettierrc.json || ln -s $DDEV_DOCROOT/core/.prettierrc.json .
1315
# Change directory to the project root folder
1416
cd "$DDEV_DOCROOT/$DRUPAL_PROJECTS_PATH/${DDEV_SITENAME//-/_}" || exit
1517
"$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/node_modules/.bin/stylelint" --color --config "$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT/core/.stylelintrc.json" "./**/*.css" "$@"

0 commit comments

Comments
 (0)