argus-io / argus-io/argus

Integrate linter, prettier and pre-commit hook

Open
#4 0 comments 0 reactions 1 assignee Claimed by @uraniumreza View on GitHub
enhancement
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We can setup **Husky** `pre-commit` hook with **ESLint**, **Prettier** and **lint-staged** to avoid bad commits and properly format code before committing. So let's get into it.

- What is Husky?
**Husky** lets us run commands or script before committing or pushing our code to git.

- What is ESLint?
**ESLint** is a tool that can analyze our code and find errors in that code using ESLint rules. It can also fix some errors on its own.

- What is Prettier?
**Prettier** is an opinionated code formatter that can format our code with the help of rules that we set or defaults are used.

- What is lint-staged?
**lint-staged** can run multiple linters against staged git files which in our case are **ESLint** and **Prettier**.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.