azeem110201 / ESLint-with-Prettier-and-Husky

Configuration of ESLint with Prettier and Husky to enforce code styles are followed before committing the code to github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started with ESLint with Prettier and Husky for pre-commit checks

This starter-project demonstrate the use of style guide (here we are using specific style guide of AirBnb) which ensures that whatever the code is written/committed matches the coding styles or not. If the code styles are not properly followed, then the commit will fail.

Available Scripts

Clone the project and then install the libraries, you can run:

npm install

then run

npm run lint

This will display the error messages along with the file name, line number where the code styles are not followed. Either fix them manually or you can run the below command which fixes all eslint styles autmatically

npm run lint:fix

About

Configuration of ESLint with Prettier and Husky to enforce code styles are followed before committing the code to github


Languages

Language:TypeScript 43.3%Language:HTML 35.9%Language:CSS 19.4%Language:Shell 1.4%