husky
commitlint
husky | commitlint | |
---|---|---|
141 | 32 | |
32,580 | 16,846 | |
- | 0.8% | |
8.5 | 9.5 | |
24 days ago | 11 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
husky
-
Local Dev Environment and Static Code Analysis
To implement these hooks I have utilised another library called husky
-
How to Leverage Git and AI to View Your Achievements as a Developer
Meaningful commit messages make logs easier to review, and there are other specifications and tools like Conventional Commits and Husky that can also keep your commit history clean and purposeful.
-
Clean Code: Open Source Linting & Formatting
My second approach is to always ask ChatGPT to do a Bing (I wish it was google too, believe me) search for me and find tools that fit my criteria. And it did! I was recommended two packages, Husky and lint-staged, which work together! Husky is a package that provides ultra-fast modern native Git hooks, and lint-staged is a tool that allows running linters against staged Git files!
- Configurando Prettier, ESLint y Husky en Angular
-
Tutorial: Build a Java SDK based on OpenAPI Spec
Husky can be used to set up Git hooks that run scripts before code is committed.
-
Which open-source projects are widely used but maintained by just a few people?
husky (git hooks) https://github.com/typicode/husky
-
Using Husky to help you avoid f****ing up Semantic Versioning
Husky is an NPM package that makes it easy to integrate Git Hooks into your project. It can be used to automate tasks such as running tests, linters, etc. It is extremely fast and weighs only 2kb. Additionally, with Husky, we can create hooks using POSIX shell scripts.
- React with Vite On Steroids
-
How Should You Use an Auto-Formatter?
In the case of pre-commit hooks, the runtime either has to be installed manually by every user (in the case of Husky) or is handled in Python (in the case of pre-commit). Running Node.js through Python/pyenv introduces an additional layer of complexity, which can lead to issues like OpenSSL library incompatibilities.
- Automatizando o versionamento semΓ’ntico com Git Hooks
commitlint
-
Comment j'automatise l'utilisation Conventional Commits ?
Voici le lien vers la documentation de commitlint : https://commitlint.js.org/
-
π Angular 18 + Cypress, Material + Transloco + Jest, EsLint + Docker + Prettier π
β Angular 18 β Angular Material β Unit Testing with Jest β End-to-End Testing with Cypress β Internationalization with Transloco β Auto documentation with Compodoc β Provide component examples with Storybook β Analyse your project with source-map-explorer β Docker β ESLint β Prettier β Commit Linting β AuditJS Audit this application using Sonatype OSS Index β Auto-generate a CHANGELOG with auto-changelog
-
Git: Conventional Commits
2. Commitlint Commitlint checks if your commit messages meet the Conventional Commits standard. It can be integrated into your CI/CD pipeline to enforce commit message guidelines.
-
The Senior Engineer's Guide to the Code Reviews
This could also be enforced via commit-lint
-
Streamline Your Workflow: A Guide to Normalising Git Commit and Push Processes
commitlint is the most important tool we need for this step.
-
How to use Lefthooks in your node project?
Apart from these we also need to enforce standards for all our commit messages(commit-lint).
-
Better Git Commits with `@commitlint`
There are many features of commitlint that I can't mention one by one, as well as installation guide. To know the detail you can directly access https://github.com/conventional-changelog/commitlint.
-
Conventional Commit Message and Linting
These commit message prefixes can help to provide context and organization in a project's version control history, making it easier to understand and track changes over time. Note: if you want to force these rules on commit messages, here is a commit linting lib for you. Commitlint
-
Nodejs Boilerplate with Typescript and Express
Commit Lint
-
Setting Up a Modern Preact Application With Typescript, Vite and Vitest
I personally find it quite useful to enforce a uniform commit style. commitlint pairs well with husky.
What are some alternatives?
simple-git-hooks - A simple git hooks manager for small projects
lint-staged - π«π© β Run linters on git staged files
lerna - Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
semantic-release - :package::rocket: Fully automated version management and package publishing
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions.
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
prettier - Prettier is an opinionated code formatter.
emoji-commit-messages - π΅ A fun paradigm to encourage cleaner commits.
pretty-quick - β‘ Get Pretty Quick
create-nuxt-app - Create Nuxt.js App in seconds.