Template using Zustand with Next.js, React, Tailwind CSS, ESLint, Prettier, and VSCode
Clone the repository then run:
npm install
Start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Create a production build:
npm run build
Start the production server:
npm run start
Check for formatting errors:
npm run lint
Install the following extensions for VSCode:
npm install
installs the following packages:
npx create-next-app@latest
Configuration files:
next.config.js
Configuration files:
tailwind.config.js
postcss.config.js
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
Configuration files:
.eslintrc.json
npm install --save-dev --save-exact prettier
Import Sorter plugin for Prettier:
npm install --save-dev prettier-plugin-import-sorter
ESLint plugin for Prettier:
npm install --save-dev eslint-plugin-prettier
eslint-config-prettier package turns off all eslint rules that are unnecessary or might conflict with Prettier
npm install --save-dev eslint-config-prettier
Tailwind CSS plugin for Prettier:
npm install --save-dev prettier-plugin-tailwindcss
Configuration files:
.prettierrc
.prettierignore
.vscode/settings.json
.eslintrc.json