This is a Next.js project starter bootstrapped using create-next-app
with pre-installed linters using my preferred and opinionated configuration, which helps to write consistent and clean code in the project.
Prettier
ESlint
husky
lint-staged
pnpm
as a package managerTypeScript
- initial project structure
- import inside
src
using@/*
as well as items frompublic
usingpublic/*
pnpm run format
- runPrettier
formatter on all filespnpm run check-types
- runTypeScript
compiler on all files to validate thempnpm run lint
- runESlint
on all files withTypeScript
compiler
First, run the development server:
pnpm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.