Gets stylelint command working

This commit is contained in:
Mouse Reeve 2022-02-16 13:11:04 -08:00
parent 1412fa507c
commit 6f90c80494
2 changed files with 5 additions and 2 deletions

4
bw-dev
View file

@ -138,7 +138,9 @@ case "$CMD" in
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
;; ;;
stylelint) stylelint)
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix docker-compose run --rm dev-tools npx stylelint \
bookwyrm/static/css/*.css --fix \
--config dev-tools/.stylelintrc.js
;; ;;
formatters) formatters)
docker-compose run --rm dev-tools black celerywyrm bookwyrm && \ docker-compose run --rm dev-tools black celerywyrm bookwyrm && \

View file

@ -12,6 +12,7 @@
"merge": "2.1.1", "merge": "2.1.1",
"postcss": "^8.4.6", "postcss": "^8.4.6",
"stylelint-config-recommended": "^7.0.0", "stylelint-config-recommended": "^7.0.0",
"stylelint-config-standard": "^25.0.0" "stylelint-config-standard": "^25.0.0",
"stylelint-order": "^5.0.0"
} }
} }