Next.js and React Project Configuration: ESLint, Prettier, and Git Hooks

Kanan Rahimov
5 min readApr 16, 2023

In this tutorial, I share an opinionated set of configurations for ESLint, pre-commit hooks, and styling and indentation configuration.

Next.js and React Project Configuration / Photo by Sigmund on Unsplash

Next.js Project Setup

I have a Next.js project that I set up with TypeScript and ESLint.

npx create-next-app@latest --typescript

--

--