You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we just lint, but we would benefit from doing what I have in my pre-commit script:
set -e
# check typescript correctness
npx tsc --noEmit
# check all .sh files are executable
invalid_scripts=0
forscriptin$( find . -type f -iname *.sh );doif [ !-x$script ];thenecho"Script $script is not executable"
invalid_scripts=$((invalid_scripts +1))fidoneif [ $invalid_scripts!= 0 ];thenexit 1
fi# check there are no it.only occurrences in the tests
grep -re "it\.only("$(git ls-files '*.ts')&&echo"Error: There are files with it.only(...)"&&exit 2
# lint
npm run lint
The text was updated successfully, but these errors were encountered:
Currently we just lint, but we would benefit from doing what I have in my pre-commit script:
The text was updated successfully, but these errors were encountered: