Jonghakseo / chrome-extension-boilerplate-react-vite

Chrome Extension Boilerplate with React + Vite + Typescript
MIT License
2.43k stars 357 forks source link

Fix husky pre-commit giving deprecation notice #647

Closed justinhaaheim closed 3 months ago

justinhaaheim commented 3 months ago

* Please fill in the required items.

Priority*

Purpose of the PR*

Husky v9 now prints a deprecation notice on every commit:

husky - DEPRECATED

Please remove the following two lines from .husky/pre-commit:

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

They WILL FAIL in v10.0.0

This fixes that according to https://github.com/typicode/husky/releases/tag/v9.0.1

How to check the feature

Commits now no longer print the deprecation warning.

PatrykKuniczak commented 3 months ago

@justinhaaheim Good job 😄