benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
184 stars 28 forks source link

prettier-check should read the staged version of files #400

Open benwiley4000 opened 5 years ago

benwiley4000 commented 5 years ago

The pre-commit prettier-check only validates the version of each file stored on the file system, which means that the check may pass even if the file version staged for commit wouldn't pass.

We might be able to use isomorphic git (https://github.com/isomorphic-git/isomorphic-git) to validate the version of the file staged for commit.