---
title: "Discussion on \"Format and fix code: VS Code config and git pre-commit hook with husky and lint-staged\" | Hashnode"
description: "Discussion on \"Format and fix code: VS Code config and git pre-commit hook with husky and lint-staged\". In a typical web code repository, we use linters like eslint to highlight warnings or syntax errors and use tools like prettier to format the code.\nThere are a few ways to trigger the action:\nVS Code\nAt editor level, e.g. VS Code, we can use command ..."
url: "https://hashnode.com/posts/format-and-fix-code-vs-code-config-and-git-pre-commit-hook-with-husky-and-lint-staged/65b6e3d1291110bf541e7a77"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Format and fix code: VS Code config and git pre-commit hook with husky and lint-staged](https://blog.jczhang.com/format-and-fix-code-vs-code-config-and-git-pre-commit-hook-with-husky-and-lint-staged?utm_source=hashnode&utm_medium=feed)

In a typical web code repository, we use linters like eslint to highlight warnings or syntax errors and use tools like prettier to format the code. There are a few ways to trigger the action: VS Code At editor level, e.g. VS Code, we can use command ...

Jan 28, 2024 · 2 min read · blog.jczhang.com  
Updated Jan 31, 2024  
Read the article

-   [#husky](https://hashnode.com/tag/husky)
-   [#lint-staged](https://hashnode.com/tag/lint-staged)
-   [#jamesz-take](https://hashnode.com/tag/jamesz-take)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#git](https://hashnode.com/tag/git)

## Written by

[James Zhang](https://hashnode.com/@jamesz)

@jamesz · Beijing, China

  
[View profile](https://hashnode.com/@jamesz)

Founding Engineer at Bazar (General Catalyst backed), Ex Meta Ads MLE, Ex Activision Blizzard Intern

Founding Engineer at Bazar (General Catalyst backed), Ex Meta Ads MLE, Ex Activision Blizzard Intern

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
