This template includes a basic setup for Nex JS with TypeScript, ESLint, Prettier, MUI and Husky.
Automatic checks are performed on each commit using Husky and lint-staged.
- ✅ Next JS recommended lint rules
- ✅ Typescript issues (types, unused vars)
- ✅ Formatting issues
- ✅ React hook dependencies
- ✅ Unused imports
- ✅ Prefer const
Click "Use this template" and create a new repository from this template.
Type:
yarn dev
Then visit http://localhost:3000
To build like if it was for production run
yarn build
yarn start
Then you can visit http://localhost:3000 and check that everything works as expected.
If pre-commit hooks are not working be sure that you have installed husky: husky install
.
By default this command should be triggered after yarn/npm deps are installed.