News for hackers. Stuff that matters.
Re:Prettier 1.0 by jacobr on Friday April 14, 2017 @04:51AM (#14113344)
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?

Re:Prettier 1.0 by josephfrazier on Friday April 14, 2017 @02:48PM (#14116295)
You 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

[2]: https://github.com/josephfrazier/prettier-diff