Slide 9
Slide 9 text
#!/bin/sh!
!
for file in $(git diff --cached --name-only --diff-
filter=ACM | grep '\.tsx\?$' | tr '\n' ' ')!
do!
echo "prettier $file";!
# Prettify all staged .js files!
./node_modules/.bin/tslint $file -c ./tslint.json --
exclude 'src/**/*.css' --project tsconfig.json --fix!
!
# Add back the modified/prettified files to staging!
git add $file!
!
done!