anki/ts/format.sh
Damien Elmes b71f55dcc5 make 'bazel run ts:format' work
We're cheating a bit by having it fix files in qt's data folder
as well, but this makes it easier to share the config file.
2020-11-12 20:49:00 +10:00

4 lines
189 B
Bash
Executable File

# this is a hack to invoke prettier directly from Bazel
ts=${BUILD_WORKSPACE_DIRECTORY}/ts
(cd $ts && ./node_modules/.bin/prettier --config .prettierrc --write . $ts/../qt/aqt/data/web/js)