🌐
GitHub
github.com › conventional-changelog › commitlint
GitHub - conventional-changelog/commitlint: 📓 Lint commit messages
Node v24 changes the way that modules are loaded, and this includes the commitlint config file. If your project does not contain a package.json, commitlint may fail to load the config, resulting in a Please add rules to your commitlint.config.js error message.
Starred by 18.5K users
Forked by 965 users
Languages   TypeScript 92.2% | JavaScript 7.8%
🌐
Commitlint
commitlint.js.org › reference › examples.html
Examples | commitlint
This example uses inline parserOpts to configure the parser to recognize custom issue prefixes (e.g. PROJ-123). The references-empty rule then enforces that every commit references a ticket. ... { // ... "commitlint": { "rules": { "references-empty": [2, "never"], }, "parserPreset": { "parserOpts": ...
🌐
Commitlint
commitlint.js.org › guides › ci-setup.html
Guide: CI Setup | commitlint
version: 2.1 executors: my-executor: docker: - image: cimg/node:current working_directory: ~/project jobs: setup: executor: my-executor steps: - checkout - restore_cache: key: lock-{{ checksum "package-lock.json" }} - run: name: Install dependencies command: npm install - save_cache: key: lock-{{ checksum "package-lock.json" }} paths: - node_modules - persist_to_workspace: root: ~/project paths: - node_modules lint_commit_message: executor: my-executor steps: - checkout - attach_workspace: at: ~/project - run: name: Define environment variable with latest commit's message command: | echo 'export COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")' >> $BASH_ENV source $BASH_ENV - run: name: Lint commit message command: echo "$COMMIT_MESSAGE" | npx commitlint workflows: version: 2.1 commit: jobs: - setup - lint_commit_message: requires: - setup
🌐
freeCodeCamp
freecodecamp.org › news › how-to-use-commitlint-to-write-good-commit-messages
How to Write Good Commit Messages with Commitlint
November 12, 2021 - The default commitlint convention ... a body and footer. For example I can fix a bug related to UI and then the commit message can be fix(ui): Button was not showing up properly on mobile view....
🌐
Commitlint
commitlint.js.org › reference › configuration.html
Configuration | commitlint
const Configuration = { /* * Resolve and load @commitlint/config-conventional from node_modules. * Referenced packages must be installed */ extends: ["@commitlint/config-conventional"], /* * Resolve and load conventional-changelog-atom from node_modules. * Referenced packages must be installed */ parserPreset: "conventional-changelog-atom", /* * Resolve and load @commitlint/format from node_modules.
🌐
Medium
arunkumarvallal.medium.com › become-a-pro-at-commit-messages-using-commitlint-56dab86333b3
Become a Pro at Commit Messages using Commitlint | by Arun kumar V | Medium
October 23, 2023 - Commitlint is often used in conjunction with other tools and libraries, such as Husky and Lint-staged, to perform checks on commit messages before they are approved and committed to the repository.
🌐
Commitlint
commitlint.js.org › guides › local-setup.html
Guide: Local setup | commitlint
npm install --save-dev husky # husky@v9 npx husky init # husky@v8 or lower npx husky install # Add commit message linting to commit-msg hook echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg
🌐
Commitlint
commitlint.js.org › guides › getting-started.html
Getting started | commitlint
# Here we use the node command to avoid encoding issue on Windows. node -e "fs.writeFileSync('commitlint.config.js', process.argv[1])" "export default { extends: ['@commitlint/config-conventional'] };"
🌐
Medium
trishan9.medium.com › what-is-commitlint-why-to-use-how-to-setup-and-more-2832d50ccff3
What is Commitlint? Why to use? How to Setup and more | by Trishan Wagle | Medium
September 8, 2023 - How to setup Commitlint in your project: Step 1: Install Commitlint ``` # Install and configure if needed npm install — save-dev @commitlint/{cli,config-conventional} # For Windows: npm install — save-dev @commitlint/config-conventional @commitlint/cli # Configure commitlint to use conventional config echo “module.exports = { extends: [‘@commitlint/config-conventional’] };” > commitlint.config.js ```
Find elsewhere
🌐
GitHub
github.com › conventionalcommit › commitlint
GitHub - conventionalcommit/commitlint: commitlint checks if your commit messages meets the conventional commit format · GitHub
February 22, 2026 - echo "fear: do not fear for commit message" | commitlint lint # ❌ type-enum: type 'fear' is not allowed, you can use one of [build chore ci docs feat fix merge perf refactor revert style test]
Starred by 86 users
Forked by 9 users
Languages   Go 91.4% | Shell 8.6%
🌐
Tericcabrel
blog.tericcabrel.com › apply-conventional-commit-style-on-your-project-with-commitlint
Apply conventional commit style on your project with commitlint
February 24, 2026 - yarn add -D husky # Activate husky yarn husky install # Add the hook yarn husky add .husky/commit-msg "yarn commitlint --edit $1"
🌐
npm
npmjs.com › package › commitlint
commitlint - npm
March 15, 2026 - Alias of @commitlint/cli · conventional-changelog · commitlint · cli · npm i commitlint · github.com/conventional-changelog/commitlint · commitlint.js.org/ 581,206 · 20.5.0 · MIT · a month ago · marionebl · martinhelmut · escapedcat · bycedric · Analyze security with SocketCheck bundle sizeView package healthExplore dependencies ·
      » npm install commitlint
    
Published   Mar 15, 2026
Version   20.5.0
🌐
npm
npmjs.com › package › @commitlint › config-conventional
commitlint/config-conventional
March 15, 2026 - npm install --save-dev @commitlint/config-conventional @commitlint/cli echo "export default {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
      » npm install @commitlint/config-conventional
    
Published   Mar 15, 2026
Version   20.5.0
🌐
LogRocket
blog.logrocket.com › home › commitlint: write more organized code
Commitlint: Write more organized code - LogRocket Blog
June 4, 2024 - Commitlint is the ESLint for your commit messages. It performs validations on any text against a predefined commit format.
🌐
Vojtechruzicka
vojtechruzicka.com › commitlint
Commitlint: validate commit conventions automatically | Vojtech Ruzicka's Programming Blog
November 18, 2019 - C:\projects\commitlint-example>git commit -m "created base project structure" husky > commit-msg (node v10.16.3) ⧗ input: created base project structure ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ ...
🌐
HexDocs
hexdocs.pm › commitlint › Commitlint.html
Commitlint — commitlint v0.1.2
def deps do [ {:commitlint, "~> 0.1.2", runtime: false, only: :dev} ] end
🌐
Conventional Commits
conventionalcommits.org › en › v1.0.0
Conventional Commits
types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
🌐
Lefthook
lefthook.dev › examples › commitlint
Commitlint and commitzen : Lefthook
# lefthook.yml # Build commit messages prepare-commit-msg: commands: commitzen: interactive: true run: yarn run cz --hook # Or npx cz --hook env: LEFTHOOK: 0 # Validate commit messages commit-msg: commands: "lint commit message": run: yarn run commitlint --edit {1}
🌐
Commitlint
commitlint.io
Commitlint
We cannot provide a description for this page right now