Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit hook to run generate-table-of-contents and format scripts #95

Open
leroykorterink opened this issue Jan 18, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@leroykorterink
Copy link
Collaborator

We should run the generate-table-of-contents and format script so that the files in this repository are automatically updated and formatted to avoid conflicts and keep consistency.

We can use husky to implement this.

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

npm run generate-table-of-contents
npm run format
@leroykorterink leroykorterink added enhancement New feature or request good first issue Good for newcomers labels Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant