add Vue UI [wip]
This commit is contained in:
parent
3d5656392e
commit
b47dfc579b
22 changed files with 2242 additions and 6 deletions
21
scripts/lint-js
Executable file
21
scripts/lint-js
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/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 ||:
|
||||
npx prettier $prettier_opts 'src/**/*.{js,ts,vue}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue