{"id":24964,"library":"babel-preset-commitlint","title":"babel-preset-commitlint","description":"Babel preset for commitlint, a tool that lints commit messages against configurable rules. This package provides a Babel preset configuration for commitlint, useful when using commitlint with Babel. The current stable version is 9.0.1 (last released on 2021-05-20), part of the commitlint v9 series. Note that commitlint itself has evolved to v17+, and babel-preset-commitlint may be obsolete; the modern approach is to use `@commitlint/cli` directly with conventional-changelog presets. This package has minimal maintenance and is likely deprecated or superseded by other commitlint packages.","status":"maintenance","version":"9.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/conventional-changelog/commitlint","tags":["javascript","babel","conventional-changelog","commitlint","utility"],"install":[{"cmd":"npm install babel-preset-commitlint","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-commitlint","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-commitlint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a Babel preset exported as CommonJS; it should be used in Babel config files via require.","wrong":"import preset from 'babel-preset-commitlint'","symbol":"default","correct":"module.exports = require('babel-preset-commitlint')"}],"quickstart":{"code":"// In .babelrc or babel.config.js\nmodule.exports = {\n  presets: [\n    'babel-preset-commitlint'\n  ]\n};\n\n// Then run commitlint as usual, e.g., commitlint -E HUSKY_GIT_PARAMS","lang":"javascript","description":"Shows how to configure Babel preset in Babel config to enable commitlint linting."},"warnings":[{"fix":"Use @commitlint/cli directly and configure via commitlint.config.js instead of relying on Babel preset.","message":"babel-preset-commitlint is outdated; commitlint has evolved and this preset is no longer maintained.","severity":"deprecated","affected_versions":">=9.0.0"},{"fix":"Upgrade to @commitlint/cli and configure without the Babel preset.","message":"commitlint v9 introduced breaking changes; babel-preset-commitlint@9.0.1 may not work with newer commitlint versions.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Install @commitlint/cli as the main linting tool; babel-preset-commitlint only provides Babel integration.","message":"This preset is intended for use with commitlint, but it is a separate package; users often mistakenly think it replaces the commitlint CLI.","severity":"gotcha","affected_versions":">=9.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev babel-preset-commitlint to install it.","cause":"The package is not installed or is missing from node_modules.","error":"Error: Cannot find module 'babel-preset-commitlint'"},{"fix":"Set BABEL_ENV or NODE_ENV to 'production', 'development', or 'test' as needed.","cause":"The preset may need an environment variable set, but it's not documented.","error":"Error: Preset 'babel-preset-commitlint' requires a BABEL_ENV or NODE_ENV"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}