unwind/scripts/lint-js

22 lines
318 B
Text
Raw Normal View History

2021-07-25 19:01:25 +02:00
#!/bin/sh -eu
cd "$RUN_DIR"
if [ "${1:-}" = '--fix' ]; then
mode=fix
else
mode=check
fi
if [ "$mode" = 'fix' ]; then
prettier_opts=--write
else
prettier_opts=--check
fi
[ -z "${DEBUG:-}" ] || set -x
cd unwind-ui
npm run lint ||:
2021-08-05 17:50:44 +02:00
npx prettier $prettier_opts 'vite.config.ts' 'src/**/*.{js,ts,vue}'