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

fix: add husky pre-commit #22

Merged
merged 3 commits into from
Sep 17, 2024
Merged

fix: add husky pre-commit #22

merged 3 commits into from
Sep 17, 2024

Conversation

caseyw
Copy link
Collaborator

@caseyw caseyw commented Sep 16, 2024

This pull request includes several changes to improve the development workflow and enforce code quality standards. The most important changes include the addition of a spell-check configuration, updates to the pre-commit hooks, and modifications to the package.json file to integrate Husky and other tools.

Development Workflow Improvements:

  • Spell-check Configuration: Added a new .cspell.yaml file to configure spell-checking with custom dictionaries and ignore paths. (.cspell.yaml, .cspell.yamlR1-R30)
  • Pre-commit Hooks: Introduced a .husky/pre-commit script to run linting and pre-commit checks using pre-commit if available. (.husky/pre-commit, .husky/pre-commitR1-R9)
  • Pre-commit Configuration: Added a .pre-commit-config.yaml file to define various pre-commit hooks, including checks for large files, merge conflicts, YAML validation, and markdown linting. (.pre-commit-config.yaml, .pre-commit-config.yamlR1-R51)

Package Configuration:

  • Husky Integration: Updated package.json to add Husky and a prepare script to set up Git hooks. (package.json, [1] [2]
  • Linting Command: Added a lint:all script to package.json for running both lint and Prettier checks. (package.json, package.jsonR34-R42)

Miscellaneous:

@caseyw caseyw merged commit 389235b into main Sep 17, 2024
6 checks passed
@caseyw caseyw deleted the add-pre-commit branch September 17, 2024 13:59
Wolftousen pushed a commit that referenced this pull request Sep 17, 2024
## [1.0.6](v1.0.5...v1.0.6) (2024-09-17)

### Bug Fixes

* add husky pre-commit ([#22](#22)) ([389235b](389235b))
@Wolftousen
Copy link
Collaborator

🎉 This PR is included in version 1.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants