4 ms·
What's the best way to add this to an existing project? Going through all code at once would destroy all relevant vcs history and git blame. Maybe before each
by jacobr 10y ago
What's the best way to add this to an existing project?
Going through all code at once would destroy all relevant vcs history and git blame. Maybe before each substantial edit on a file first run it through prettier and then make your real changes in a separate commit?
- josephfrazier 10y agoYou can have git diff/blame/etc ignore stylistic changes by configuring prettier as a textconv [1]. I'm building a `git diff` wrapper that does this for you [2]. [1]: https://git.wiki.kernel.org/index.php/Textconv https://git.wiki.kernel.org/index.php/Textconv [2]: https://github.com/josephfrazier/prettier-diff https://github.com/josephfrazier/prettier-diff