Skip to content

Commit

Permalink
Use prettier via bun
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain committed Mar 5, 2024
1 parent 46f57b3 commit 7a75d91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
scripts/*

# Lint JavaScript
docker-compose \
run --rm --entrypoint ./node_modules/.bin/prettier \
app --check src/

docker-compose \
run --rm --entrypoint ./node_modules/.bin/eslint \
app src/ --ext .js --ext .jsx
./scripts/bun run prettier --check src/
./scripts/bun run eslint src/ --ext .js --ext .jsx

if [[ -n "${CI}" ]]; then
# Lint Django app
Expand Down
2 changes: 2 additions & 0 deletions src/app/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.jpg
*.png

0 comments on commit 7a75d91

Please sign in to comment.