# Adding a formatter for CSS & JS

**URL:** <https://forum.djangoproject.com/t/adding-a-formatter-for-css-js/25754>\
**Category:** Django Internals\
**Created:** [November 29, 2023, 7:25pm UTC](https://forum.djangoproject.com/t/adding-a-formatter-for-css-js/25754 "2023-11-29T19:25:46Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![matthiask](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/matthiask/32/115_2.png) [@matthiask](https://forum.djangoproject.com/u/matthiask)\
**Post date:** [December 4, 2023, 8:39am UTC](https://forum.djangoproject.com/t/adding-a-formatter-for-css-js/25754/13 "2023-12-04T08:39:08Z")

</div>

This is a great idea. ESLint is already configured (a bit) in `.pre-commit-config.yaml`.

Something like `exclude: "vendor"` at the top of the pre-commit configuration should also take care of not checking and reformatting jquery etc.

I always use `eslint-config-prettier` to automatically turn off ESLint rules which are useless when using prettier. It works well.

---

_[View the full topic](https://forum.djangoproject.com/t/adding-a-formatter-for-css-js/25754)._
