---
title: "Comment by Umut Tufanoglu on \"How To Style Your Next.JS Projects EXACTLY Like Google (in TypeScript)\" | Hashnode"
description: "Hi Jarrod, Great article, I have a similar kind of setup. One thing which does not work in a nextjs app with eslint / prettier is that custom directories like a"
url: "https://hashnode.com/posts/nextjs-eslint-prettier-husky/60909ac5150acd02607141c6/comment/61b4f438b18f1f0c68301350"
---

[Discussion](https://hashnode.com/posts/nextjs-eslint-prettier-husky/60909ac5150acd02607141c6)

Comment [How To Style Your Next.JS Projects EXACTLY Like Google (in TypeScript)](https://hashnode.com/posts/nextjs-eslint-prettier-husky/60909ac5150acd02607141c6)

[Umut Tufanoglu](https://hashnode.com/@utdevelopment)

[Dec 11, 2021](https://hashnode.com/posts/nextjs-eslint-prettier-husky/60909ac5150acd02607141c6/comment/61b4f438b18f1f0c68301350)

Hi Jarrod,

Great article, I have a similar kind of setup. One thing which does not work in a nextjs app with eslint / prettier is that custom directories like a hooks or an utils directory do not get formatted. Any idea how to fix that? I googled quite a lot the only thing I found is adding the directories in the next.config.js file, but that only seems to work after building the application.

```
/** @type {import('next').NextConfig} */
module.exports = {
  reactStrictMode: true,
  eslint: {
    dirs: ['pages', 'components', 'utils', 'lib', 'hooks', 'types']
  }
}
```
