# Code linting and formatting with prettier

**URL:** <https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981>\
**Category:** Development\
**Created:** [July 24, 2018, 2:31am UTC](https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981 "2018-07-24T02:31:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [July 24, 2018, 9:50am UTC](https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981/5 "2018-07-24T09:50:49Z")

</div>

I recommend installing [overcommit](https://github.com/brigade/overcommit) which adds hooks to your git repository and runs the linters (Rubocop and EsLint) on changed files before each commit.

---

_[View the full topic](https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981)._
