Registry / devops / commitlint-circle

commitlint-circle

JSON →
library1.0.0jsnpmunverified

Convenience wrapper around @commitlint/cli for linting all relevant commits for a change or PR on Circle CI, version 1.0.0. This package is specifically for Circle CI, providing zero-configuration linting. Its key differentiator is the automatic detection of the commit range based on Circle CI environment variables (e.g., CIRCLE_PULL_REQUESTS, CIRCLE_SHA1). It requires @commitlint/cli ^7.0.0 as a peer dependency. Ship TypeScript types. One of the few commitlint integrations tailored to Circle CI, but note it is not actively maintained (last release in 2019).

npm install commitlint-circle
INSTALL
IMPORT
SIG · COMMITLINT-CIRCLE
C
commitlint-circle
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

commitlint-circle
library is a CLI tool, intended to be run via `npx commitlint-circle` or as a yarn script; no import in source code
import commitlintCircle from 'commitlint-circle'
This is a CLI tool, not a library to import. Use it via `npx commitlint-circle` in your Circle CI config.

Configures Circle CI to run commitlint-circle, which lints all commits in the current build or PR.

// .circleci/config.yml version: 2.1 orbs: node: circleci/node@5.0.0 jobs: build: executor: name: node/default steps: - checkout - node/install-packages: pkg-manager: yarn - run: name: Lint commits command: npx commitlint-circle
commitlint-circle --version
Debug
Known issues
deprecatedPackage has not been updated since 2019 and may not work with newer versions of @commitlint/cli.
fix
Consider using @commitlint/config-conventional directly with commitlint's built-in Circle CI support, or use commitlint GitHub action.
affects: >=1.0.0
gotchaThe package relies on Circle CI environment variables; it will fail silently or with unclear errors if run outside Circle CI.
fix
Only run in Circle CI environment; for local testing, set environment variables like CIRCLE_SHA1, CIRCLE_PULL_REQUESTS manually.
affects: >=1.0.0
gotchaRequires @commitlint/cli@^7.0.0 as peer dependency, which may conflict with newer commitlint versions.
fix
Ensure @commitlint/cli version satisfies the peer dependency range (^7.0.0).
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module '@commitlint/cli'
Missing peer dependency @commitlint/cli
fix
Run `npm install @commitlint/cli@^7.0.0 --save-dev` or `yarn add @commitlint/cli@^7.0.0 --dev`
Error: No commit range found. Are you running on Circle CI?
Missing required Circle CI environment variables (e.g., CIRCLE_PULL_REQUESTS, CIRCLE_SHA1)
fix
Ensure you are running inside a Circle CI job, or set the necessary environment variables for testing.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
@commitlint/clirequiredpeer dependency required for linting logic
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
commitlint-circle — npm install commitlint-circle · libregistry