microsoft / vscode-mssql

Visual Studio Code SQL Server extension.
Other
1.55k stars 459 forks source link

Fixing pre-commit hooks and running yarn localization in precommit #18065

Closed aasimkhan30 closed 1 month ago

aasimkhan30 commented 1 month ago

The prepare command is a reserved npm command that runs automatically after yarn install. I'm configuring Husky within the prepare script so that whenever someone runs yarn install, Husky will set up the pre-commit hook. This pre-commit hook runs yarn lint and yarn localization before allowing code to be committed. While this might slow down the commit process slightly, it ensures that code checks are performed upfront, saving time compared to waiting for checks to pass after submitting a pull request.

github-actions[bot] commented 1 month ago

VSIX Size Comparison