An open API service indexing awesome lists of open source software.

https://github.com/blakepro/nextjs-tailwind-eslint-prettier-husky-docker

Boilerplate to create nextjs, tailwindcss with eslint, prettier, husky (git staged files) and docker
https://github.com/blakepro/nextjs-tailwind-eslint-prettier-husky-docker

docker eslint husky nextjs nextjs-boilerplate prettier tailwindcss

Last synced: 3 months ago
JSON representation

Boilerplate to create nextjs, tailwindcss with eslint, prettier, husky (git staged files) and docker

Awesome Lists containing this project

README

          

Boilerplate


NextJs · Tailwindcss · Eslint · Prettier · Husky · Docker


Boilerplate for NextJs Tailwindcss Eslint Prettier Husky Docker

## 👉🏻 Dev usage

```bash
# npx mrm@2 lint-staged
yarn install
yarn dev
```

## 🐋 Docker

```bash
docker compose up
```

## 📦 Tools

- `nextjs` a react framework that enables several extra features, including server-side rendering and generating static websites

- `tailwindcss` a utility-first CSS framework for rapidly building custom user interfaces

- `eslint` to ensure code quality

- `prettier` to ensure that code is properly formatted according to the rules defined
husky: makes it possible to run scripts in our package.json file on git lifecycle hooks

- `eslint-config-prettier` prevents any code formatting conflicts between eslint and prettier. As we know, eslint handles both code quality and code formatting. This package disables the rule in eslint that formats code so that eslint only focuses on ensuring code quality

- `lint-staged` runs defined scripts on only staged files(git)

- `husky` modern native Git hooks made easy

- `docker` provides the ability to package and run an application in a loosely isolated environment called a container

## 👨🏻‍💻 Author

[Cristian Yosafat](https://github.com/blakepro)