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.
There are a few ways to trigger the action:
VS Code
At editor level, e.g. VS Code, we can use command ...
blog.jczhang.com2 min read