medium-app icon indicating copy to clipboard operation
medium-app copied to clipboard

Frontend | Setup Linting & Pre-commit hooks

Open aadeshkulkarni opened this issue 1 month ago • 1 comments

Linting and pre-commit hooks are both practices aimed at improving code quality and maintaining consistency in software development projects. They help developers catch errors early in the development process and enforce coding standards.


What is Linting ?

Linting refers to the process of running a program that analyzes your code for potential errors, bugs, stylistic issues, and deviations from a specified coding standard. Linting tools, often called linters, are especially useful in identifying syntactical and semantic errors which can be easily overlooked by developers,


What are Pre-commit Hooks ?

Pre-commit hooks are scripts that run automatically before a commit is made to a version control system (such as Git). The goal of these hooks is to catch issues such as failed tests, coding standard violations, or linting errors before they are committed into the codebase.


What needs to be done ?

Essentially, follow the steps mentioned here

aadeshkulkarni avatar May 24 '24 05:05 aadeshkulkarni