DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Husky Lint-Staged on a React TypeScript Project

4 years ago js.plainenglish.io
Husky   Lint-Staged on a React TypeScript Project

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Even if you set up tools that guarantees some code quality, it is possible that you can forget to execute them before pushing your code. To automate and solve this problem, Husky + Lint-Staged packages help you prevent submitting code that does not follow some predefined rules (i.e: unit tests validation, code convention validation, code formatting, etc).

So, if you don’t have it, please go to NodeJS website, download and install it on your local machine.

Hmm, so we just need to add it to our Husky Configuration file and for these situations the commit will be sent with all the code fixed, right?

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox.Explore

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com