langel / botb_irc_bot

battle of the bits instant relay chat magic
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Set up pre-push hook to run lint command #106

Closed mucrow closed 1 year ago

mucrow commented 1 year ago

this PR installs a dev dependency called husky which automatically configures git hooks for new contributors.

it also adds a pre-push git hook that runs npm run lint and prevents the push if there are linter errors.

note: people with an existing clone of the repository will not have this git hook. they need to run npm install for this system to be configured.