Prettier runs on changed files detected by git. It ignores files out of its realm (ie .cpp, .py), but I forgot to consider .yaml and .md files. This PR prevents prettier from touching files outside of the web dir.
Testing
Made changes to the circleci yaml file and to a web file. Committed those changes (using exit code 1 on the pre-commit hook to simulate a commit) and saw no changes made to the yaml file and the correct changes made to the web file.
Summary
Prettier runs on changed files detected by git. It ignores files out of its realm (ie
.cpp
,.py
), but I forgot to consider.yaml
and.md
files. This PR prevents prettier from touching files outside of the web dir.Testing