diff --git a/.commitlintrc.json b/.commitlintrc.json
new file mode 100644
index 0000000..c0506c5
--- /dev/null
+++ b/.commitlintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": ["./index.json"]
+}
diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json
new file mode 100644
index 0000000..2f3a754
--- /dev/null
+++ b/.devcontainer/devcontainer-lock.json
@@ -0,0 +1,24 @@
+{
+ "features": {
+ "ghcr.io/devcontainers/features/common-utils:2": {
+ "version": "2.7.2",
+ "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b",
+ "integrity": "sha256:08e5a6ad4b672301c2010944217aeea4f428a87f4349d9bbf8bc97211238674b"
+ },
+ "ghcr.io/devcontainers/features/docker-in-docker:4": {
+ "version": "4.1.3",
+ "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084",
+ "integrity": "sha256:fae40f3c8be5a7c3b0db344c1d30341bc2c91ba38d1d5b14cd2ad72e6d65d084"
+ },
+ "ghcr.io/devcontainers/features/github-cli:1": {
+ "version": "1.1.3",
+ "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2",
+ "integrity": "sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2"
+ },
+ "ghcr.io/devcontainers/features/node:2": {
+ "version": "2.1.2",
+ "resolved": "ghcr.io/devcontainers/features/node@sha256:20ac718cc67e7999a9d3fbb8387f1a3a5d53ecbd41fe7c075ebadb8e9b431b17",
+ "integrity": "sha256:20ac718cc67e7999a9d3fbb8387f1a3a5d53ecbd41fe7c075ebadb8e9b431b17"
+ }
+ }
+}
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..ee5f39b
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,35 @@
+{
+ "name": "hoverkraft-tech/commitlint-config",
+ "image": "mcr.microsoft.com/devcontainers/base:debian",
+ "features": {
+ "ghcr.io/devcontainers/features/common-utils:2": {
+ "configureZshAsDefaultShell": true
+ },
+ "ghcr.io/devcontainers/features/node:2": {
+ "version": "24"
+ },
+ "ghcr.io/devcontainers/features/docker-in-docker:4": {
+ "moby": false
+ },
+ "ghcr.io/devcontainers/features/github-cli:1": {
+ "extensions": "nektos/gh-act"
+ }
+ },
+ "remoteUser": "vscode",
+ "postCreateCommand": "make setup",
+ "remoteEnv": {
+ "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
+ },
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "eamodio.gitlens",
+ "github.vscode-github-actions",
+ "github.copilot",
+ "github.copilot-chat",
+ "ms-vscode.makefile-tools",
+ "biomejs.biome"
+ ]
+ }
+ }
+}
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..68e1c5f
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,59 @@
+version: 2
+
+updates:
+ - package-ecosystem: devcontainers
+ directory: "/"
+ commit-message:
+ prefix: build
+ include: scope
+ schedule:
+ interval: weekly
+ cooldown:
+ default-days: 7
+ groups:
+ devcontainers:
+ patterns:
+ - "*"
+
+ - package-ecosystem: npm
+ directories:
+ - "/"
+ - "/test/consumer"
+ commit-message:
+ prefix: build
+ include: scope
+ schedule:
+ interval: weekly
+ cooldown:
+ default-days: 7
+ groups:
+ npm:
+ patterns:
+ - "*"
+ - package-ecosystem: github-actions
+ directory: "/"
+ commit-message:
+ prefix: build
+ include: scope
+ schedule:
+ interval: weekly
+ cooldown:
+ default-days: 7
+ groups:
+ github-actions:
+ patterns:
+ - "*"
+
+ - package-ecosystem: docker
+ directory: "/"
+ commit-message:
+ prefix: build
+ include: scope
+ schedule:
+ interval: weekly
+ cooldown:
+ default-days: 7
+ groups:
+ docker:
+ patterns:
+ - "*"
diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json
new file mode 100644
index 0000000..fcaeebb
--- /dev/null
+++ b/.github/linters/.jscpd.json
@@ -0,0 +1,13 @@
+{
+ "threshold": 0,
+ "reporters": ["consoleFull"],
+ "ignore": [
+ "**/.git/**",
+ "**/node_modules/**",
+ "**/package-lock.json",
+ "**/.github/social-preview.svg",
+ "**/.github/workflows/main-ci.yml",
+ "**/.github/workflows/pull-request-ci.yml"
+ ],
+ "absolute": true
+}
diff --git a/.github/logo.svg b/.github/logo.svg
new file mode 100644
index 0000000..4c400a7
--- /dev/null
+++ b/.github/logo.svg
@@ -0,0 +1,15 @@
+
diff --git a/.github/social-preview.png b/.github/social-preview.png
new file mode 100644
index 0000000..fecb2b9
Binary files /dev/null and b/.github/social-preview.png differ
diff --git a/.github/social-preview.svg b/.github/social-preview.svg
new file mode 100644
index 0000000..b365f40
--- /dev/null
+++ b/.github/social-preview.svg
@@ -0,0 +1,21 @@
+
diff --git a/.github/workflows/__shared-ci.yml b/.github/workflows/__shared-ci.yml
new file mode 100644
index 0000000..2c6fd98
--- /dev/null
+++ b/.github/workflows/__shared-ci.yml
@@ -0,0 +1,50 @@
+name: Common Continuous Integration tasks
+
+on:
+ workflow_call:
+ outputs:
+ package-tarball-artifact-id:
+ description: The validated npm package tarball artifact
+ value: ${{ jobs.nodejs.outputs.package-tarball-artifact-id }}
+
+permissions: {}
+
+jobs:
+ lint:
+ name: linter
+ uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
+ permissions:
+ actions: read
+ contents: read
+ issues: write
+ packages: read
+ pull-requests: write
+ security-events: write
+ statuses: write
+ with:
+ comment: false
+
+ nodejs:
+ uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
+ permissions:
+ contents: read
+ id-token: write
+ packages: read
+ pull-requests: write
+ security-events: write
+ with:
+ build: ""
+ lint: ""
+ code-ql: ""
+ test: '{"comment":false,"report-group":"nodejs","report-file":"junit.xml"}'
+ package: '{"test-project":"test/consumer","tests":"npm test"}'
+
+ reports:
+ needs: [lint, nodejs]
+ if: always()
+ uses: hoverkraft-tech/ci-github-common/.github/workflows/ci-reports.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
+ permissions:
+ contents: read
+ pull-requests: write
+ with:
+ job-results: ${{ toJSON(needs) }}
diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml
new file mode 100644
index 0000000..b6a9ab1
--- /dev/null
+++ b/.github/workflows/main-ci.yml
@@ -0,0 +1,24 @@
+name: Main - Continuous Integration
+
+on:
+ push:
+ branches: [main]
+
+permissions: {}
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ ci:
+ uses: $/.github/workflows/__shared-ci.yml
+ permissions:
+ actions: read
+ contents: read
+ packages: read
+ pull-requests: write
+ id-token: write
+ issues: write
+ security-events: write
+ statuses: write
diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
new file mode 100644
index 0000000..bc391c5
--- /dev/null
+++ b/.github/workflows/prepare-release.yml
@@ -0,0 +1,14 @@
+name: Prepare release labels
+
+on:
+ pull_request:
+ types: [opened, reopened, synchronize, edited]
+
+permissions: {}
+
+jobs:
+ prepare:
+ uses: hoverkraft-tech/ci-github-publish/.github/workflows/prepare-release.yml@bf24f894f60a3def62a8750f3964d05acb052c11 # 3.1.2
+ permissions:
+ contents: read
+ pull-requests: write
diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml
new file mode 100644
index 0000000..8747d7b
--- /dev/null
+++ b/.github/workflows/pull-request-ci.yml
@@ -0,0 +1,25 @@
+name: Pull request - Continuous Integration
+
+on:
+ pull_request:
+ branches: [main]
+ merge_group:
+
+permissions: {}
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ ci:
+ uses: $/.github/workflows/__shared-ci.yml
+ permissions:
+ actions: read
+ contents: read
+ packages: read
+ pull-requests: write
+ id-token: write
+ issues: write
+ security-events: write
+ statuses: write
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..b13913c
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,59 @@
+name: Release
+
+on:
+ # checkov:skip=CKV_GHA_7:Force selects a committed release version; it cannot change commands or bypass validation.
+ workflow_dispatch:
+ inputs:
+ force:
+ description: Release the package even without changes
+ type: boolean
+ default: false
+ schedule:
+ - cron: "25 8 * * 1"
+
+permissions: {}
+
+concurrency:
+ group: release-${{ github.repository }}
+ cancel-in-progress: false
+
+jobs:
+ prepare:
+ uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/prepare-package-release.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
+ permissions:
+ actions: write
+ contents: write
+ pull-requests: read
+ with:
+ force: ${{ github.event_name == 'workflow_dispatch' && inputs.force }}
+ github-app-client-id: ${{ vars.CI_BOT_APP_CLIENT_ID }}
+ secrets:
+ github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
+
+ validate:
+ needs: prepare
+ if: needs.prepare.outputs.status == 'ready'
+ uses: $/.github/workflows/__shared-ci.yml
+ permissions:
+ actions: read
+ contents: read
+ packages: read
+ pull-requests: write
+ security-events: write
+ id-token: write
+ statuses: write
+ issues: write
+
+ release:
+ needs: [prepare, validate]
+ uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/release.yml@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1
+ permissions:
+ actions: read
+ contents: write
+ pull-requests: read
+ id-token: write
+ with:
+ packages: ${{ needs.prepare.outputs.packages }}
+ package-tarball-artifact-id: ${{ needs.validate.outputs.package-tarball-artifact-id }}
+ secrets:
+ changelog-summary: ${{ secrets.CHANGELOG_SUMMARY }}
diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml
new file mode 100644
index 0000000..ca651de
--- /dev/null
+++ b/.github/workflows/semantic-pull-request.yml
@@ -0,0 +1,13 @@
+name: Pull Request - Semantic Lint
+
+on:
+ pull_request:
+ types: [opened, edited, synchronize]
+
+permissions: {}
+
+jobs:
+ lint:
+ uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@fb44045f079aaed5e7efe21138194a32c9b19025 # 4.3.4
+ permissions:
+ contents: read
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fe1ef5b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+node_modules/
+junit.xml
+*.tgz
+.cache/
+super-linter.log
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..704f4ab
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,13 @@
+# Agent instructions
+
+Follow the organization-wide guidance in
+[hoverkraft-tech/.github/AGENTS.md](https://github.com/hoverkraft-tech/.github/blob/main/AGENTS.md).
+
+This repository publishes `@hoverkraft/commitlint-config`. Keep the policy in
+`index.json`; repository configuration and tests consume that source. Do not add
+bot bypasses, custom message rewriting, or duplicated rule sets.
+
+Use the [validation guide](docs/development/validation.md) for local checks and the
+[release guide](docs/development/releasing.md) for versioning and publication.
+GitHub Actions documentation is generated with CI Dokumentor; edit workflow
+metadata and regenerate it instead of changing generated output by hand.
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..f689fa0
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,6 @@
+FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.2@sha256:12dedee667b43856a9cc792628fecc4723fc0868bf8090d268981407a7402b2c
+
+HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh","-c","test -d /github/home"]
+ARG UID=1000
+ARG GID=1000
+USER ${UID}:${GID}
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8b6d50d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+SHELL := /bin/bash
+
+.PHONY: help setup test lint lint-fix
+
+MAKEFLAGS += --silent
+.DEFAULT_GOAL := help
+
+help: ## Show help message
+ @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
+
+setup: ## Install locked dependencies
+ npm ci --ignore-scripts
+
+test: ## Run policy tests
+ npm test
+
+lint: ## Run the Hoverkraft Super-Linter image
+ $(call run_linter,)
+
+lint-fix: ## Run linters with autofix enabled
+ $(call run_linter, \
+ -e FIX_SPELL_CODESPELL=true \
+ -e FIX_MARKDOWN=true \
+ -e FIX_MARKDOWN_PRETTIER=true \
+ -e FIX_YAML_PRETTIER=true \
+ -e FIX_NATURAL_LANGUAGE=true \
+ -e FIX_SHELL_SHFMT=true \
+ -e FIX_BIOME_LINT=true \
+ -e FIX_BIOME_FORMAT=true \
+ )
+
+define run_linter
+ set -e; \
+ DEFAULT_WORKSPACE="$(CURDIR)"; \
+ LINTER_IMAGE="commitlint-config-linter:local"; \
+ VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
+ docker build --platform=linux/amd64 --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
+ docker run \
+ --platform=linux/amd64 \
+ -v "$$VOLUME" \
+ --rm \
+ -e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
+ -e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
+ $(1) \
+ $$LINTER_IMAGE
+endef
+
+# Allow trailing file filters for the lint targets.
+%:
+ @:
diff --git a/README.md b/README.md
index e15974e..bd2aebf 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,76 @@
-# Hoverkraft commitlint configuration
+# @hoverkraft/commitlint-config
Shared Conventional Commits policy for commit messages and pull request titles.
+
+
+

+
+
+---
+
+
+
+
+[](https://github.com/hoverkraft-tech/commitlint-config/actions/workflows/main-ci.yml)
+[](#license)
+[](#contributing)
+[](https://github.com/hoverkraft-tech/commitlint-config/releases)
+[](https://github.com/hoverkraft-tech/commitlint-config)
+
+
+
+## Overview
+
+`@hoverkraft/commitlint-config` keeps commit and pull request rules consistent
+across repositories through one versioned preset. It extends
+`@commitlint/config-conventional` and applies the same policy to every author,
+including dependency bots.
+
+- Conventional errors such as unsupported types and missing subjects stay blocking.
+- Subject casing and lines longer than 100 characters produce warnings.
+- Repositories can override individual rules, including choosing stricter limits.
+
+## Prerequisites
+
+Node.js 24 or later and npm.
+
+## Installation
+
+Install a published version with commitlint:
+
+```bash
+npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config
+```
+
+## Usage
+
+Configure `.commitlintrc.json` at the repository root:
+
+```json
+{
+ "extends": ["@hoverkraft/commitlint-config"]
+}
+```
+
+Commit the manifest, lockfile and configuration. See the
+[usage guide](docs/usage/commits.md) for local hooks, CI and Dependabot configuration.
+
+## Documentation
+
+- [Documentation index](docs/README.md)
+- [Commit and pull request policy](docs/usage/commits.md)
+- [Development and validation](docs/development/validation.md)
+- [Releasing](docs/development/releasing.md)
+
+## Contributing
+
+Follow the [development guide](docs/development/validation.md) for setup, linting
+and validation. Use Conventional Commits for commit messages and pull request titles.
+
+## Support
+
+Report issues in the [GitHub repository](https://github.com/hoverkraft-tech/commitlint-config/issues).
+
+## License
+
+MIT License. See [LICENSE](LICENSE) for details.
diff --git a/biome.json b/biome.json
new file mode 100644
index 0000000..0fa2118
--- /dev/null
+++ b/biome.json
@@ -0,0 +1,3 @@
+{
+ "$schema": "https://biomejs.dev/schemas/2.5.14/schema.json"
+}
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 0000000..9a00f81
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,7 @@
+# Documentation
+
+- [Usage and dependency updates](usage/commits.md)
+- [Development and validation](development/validation.md)
+- [Repository branding](development/branding.md)
+- [Releasing](development/releasing.md)
+- [ADR 0001: Publish a shared commitlint preset](adr/0001-share-commitlint-policy.md)
diff --git a/docs/adr/0001-share-commitlint-policy.md b/docs/adr/0001-share-commitlint-policy.md
new file mode 100644
index 0000000..dc1c151
--- /dev/null
+++ b/docs/adr/0001-share-commitlint-policy.md
@@ -0,0 +1,49 @@
+# ADR 0001: Publish a shared commitlint preset
+
+Status: Accepted
+
+Date: 2026-12-03
+
+## Context
+
+Repositories using shared title workflows still carry different commitlint rules.
+On 2026-12-03, the title checks for
+[cicada-sense PR 308](https://github.com/cigales-cloud/cicada-sense/actions/runs/46212439632/job/141188919008)
+and [Cigales landing-page PR 457](https://github.com/cigales-cloud/landing-page/actions/runs/46031746243/job/140617018398)
+rejected generated titles of 138 and 134 characters against a blocking 100-character
+limit. Other reported failures came from incompatible application dependencies;
+changing commit rules does not resolve those installation failures.
+
+## Decision
+
+Publish `@hoverkraft/commitlint-config` from a dedicated repository. Keep one public
+root package and use the standard commitlint `extends` mechanism. The CI workflow
+repository consumes the preset and owns its workflow integration, independently
+of package versions and npm releases.
+
+Extend the conventional preset with the existing Hoverkraft style-warning policy.
+Subject casing and header, body and footer line lengths produce warnings for all
+authors. Other severities remain unchanged. Preserve repository overrides without
+bot bypasses or custom message rewriting.
+
+Use the package release lifecycle from `docusaurus-theme`: prepare versions and
+tags, validate the prepared source and packed package, then publish the exact
+validated tarball with OIDC and provenance. Reuse shared release workflows instead
+of introducing package-specific release scripts. This JSON preset needs no build,
+workspace management or documentation site.
+
+Dependabot configuration remains in consumer repositories, with explicit `build`
+prefixes and dependency scopes. Dependabot has no documented remote preset loader.
+
+## Consequences
+
+Consumers review policy upgrades as dependency updates. The preset can be released
+without releasing the GitHub Actions collection. Tests verify both the policy and
+the installed package entry point.
+
+Style warnings also permit long or capitalized human-written subjects. This is
+intentional: Conventional Commits does not impose these limits. Repositories that
+promote them to errors accept that generated dependency updates may need attention.
+
+npm ownership and trusted-publisher setup are required before the first release.
+Consumer workflows must install their pinned preset before running commitlint.
diff --git a/docs/development/branding.md b/docs/development/branding.md
new file mode 100644
index 0000000..725d931
--- /dev/null
+++ b/docs/development/branding.md
@@ -0,0 +1,16 @@
+# Repository branding
+
+[`.github/logo.svg`](../../.github/logo.svg) contains the project icon from the
+supplied artwork. The readme displays it without changing its proportions.
+
+[`.github/social-preview.svg`](../../.github/social-preview.svg) preserves the full
+project wordmark on a solid white 1280 by 640 canvas. It is self-contained vector
+artwork, with outlined lettering and no external fonts or images.
+It embeds the same icon, so the preview is excluded from code-duplication checks.
+
+[`.github/social-preview.png`](../../.github/social-preview.png) is the corresponding
+1280 by 640 export for GitHub. Keep it synchronized when editing the SVG. Upload it
+under **Settings > General > Social preview** after merging; committing the files
+does not change the repository's social preview setting.
+
+See [GitHub's social preview requirements](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview).
diff --git a/docs/development/releasing.md b/docs/development/releasing.md
new file mode 100644
index 0000000..2bf7750
--- /dev/null
+++ b/docs/development/releasing.md
@@ -0,0 +1,55 @@
+# Releasing
+
+The [Release workflow](../../.github/workflows/release.yml) follows the package
+lifecycle used by
+[docusaurus-theme](https://github.com/hoverkraft-tech/docusaurus-theme/blob/main/docs/development/releasing.md),
+using the shared Hoverkraft Node.js preparation and release workflows. This
+repository contains one public root package and needs no build step.
+
+## Setup
+
+1. Install the release GitHub App on this repository. Supply
+ `CI_BOT_APP_CLIENT_ID` as an Actions variable and `CI_BOT_APP_PRIVATE_KEY` as an
+ Actions secret, directly or through organization access. The App needs
+ contents/actions write and pull requests read permissions. Repository rules
+ must allow the App to create its version commits and tags.
+2. Before publication, configure npm trusted publishing for
+ `@hoverkraft/commitlint-config`, with organization `hoverkraft-tech`, repository
+ `commitlint-config`, workflow filename `release.yml`, and no environment
+ restriction. Allow direct publication. See
+ [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
+ A package maintainer must establish package ownership and the first trusted
+ publisher on npm; creating this GitHub repository does not configure npm.
+3. Optionally supply `CHANGELOG_SUMMARY` with the complete configuration accepted
+ by the shared release workflow. Without it, releases use generated notes without
+ an AI summary. Keep credentials in the secret, not in workflow files.
+
+The release workflow uses GitHub OIDC for npm authentication and does not use an
+`NPM_TOKEN` secret. The package is public and publication includes provenance.
+
+## Prepare, validate and publish
+
+Run **Actions > Release > Run workflow** on `main`, or let the weekly schedule run.
+Leave `force` unchecked for normal Conventional Commit version planning. Force
+prepares a new version even without changes; it does not bypass validation.
+
+Preparation updates the root manifest and lockfile, commits the version to `main`,
+creates the tag, and dispatches the same workflow at that tag. A default-branch
+run with no changes skips publication. Tag runs validate the prepared source using
+the same CI as pull requests: policy tests, linting, packing, isolated consumer
+validation and an npm publication dry run.
+
+The release job receives the validated tarball artifact from that run. It publishes
+those exact bytes without rebuilding or repacking, then publishes GitHub release
+notes and the tarball asset. No source changelog file is generated. The separate
+`prepare-release.yml` workflow labels pull requests; it does not publish packages.
+
+## Recovery
+
+Rerun failed jobs or dispatch **Release** at the original prepared tag. A tag run
+resumes that version instead of planning a new one. Already published npm versions
+are recovered and never overwritten. For a source fix, merge it and prepare a new
+release from `main`.
+
+See the [shared release guide](https://github.com/hoverkraft-tech/ci-github-nodejs/blob/main/.github/workflows/release.md)
+for configuration and recovery details.
diff --git a/docs/development/validation.md b/docs/development/validation.md
new file mode 100644
index 0000000..3a6c5dd
--- /dev/null
+++ b/docs/development/validation.md
@@ -0,0 +1,60 @@
+# Development and validation
+
+Use Node.js 24 or later, npm, and Docker for the shared linter. The maintained
+dependency versions live in `package.json` and `package-lock.json`.
+
+## Dev container
+
+Open the repository in Visual Studio Code and select **Dev Containers: Reopen in Container**.
+The [configuration](../../.devcontainer/devcontainer.json) follows Hoverkraft's
+Debian, Zsh, Node.js, Docker-in-Docker and GitHub CLI setup. Node.js is fixed to major
+version 24, and `make setup` installs the locked project dependencies with lifecycle
+scripts disabled when the container is created. The editor runs as `vscode`.
+
+Docker-in-Docker supports `make lint` and `make lint-fix` inside the container.
+GitHub CLI includes `gh act` for local workflow execution. Feature versions and
+integrity hashes are recorded in `devcontainer-lock.json` and maintained by
+Dependabot. After changing features, regenerate the lockfile with the Dev Container
+CLI:
+
+```bash
+devcontainer upgrade --workspace-folder .
+```
+
+## Local checks
+
+```bash
+make setup
+make test
+make lint
+```
+
+Run `make help` to list targets and `make lint-fix` to apply supported fixes.
+Both lint targets use the pinned Hoverkraft Super-Linter image from `Dockerfile`,
+with the host user and group IDs. Pass a path filter to check selected files:
+
+```bash
+make lint 'docs/'
+make lint-fix 'README.md'
+```
+
+Separate `main-ci.yml` and `pull-request-ci.yml` entrypoints call `__shared-ci.yml`.
+Only their repeated wiring is excluded from duplication detection; workflow
+syntax, security and pinning checks still apply to both files.
+
+Edit `index.json` to change the policy. `.commitlintrc.json` and the policy tests
+load that source. Keep tests focused on accepted messages, blocking errors, style
+warnings and repository overrides. `npm run test:ci` also writes a JUnit report
+to `junit.xml`. The configuration is data, so it has no build or executable
+source coverage target.
+
+The shared CI workflow validates the source and the npm package separately. It
+packs only the public configuration, manifest, readme and license, installs the
+tarball in `test/consumer`, and runs commitlint through the exported package name.
+This checks distribution and dependency resolution without repeating the policy
+test matrix. The consumer fixture is private and is not published.
+
+Update dependencies and the lockfile together. Dependabot tracks both the package
+and the consumer fixture, using explicit conventional message prefixes. The
+[release workflow](releasing.md) prepares versions and the release lockfile;
+contributors do not need to bump versions in feature pull requests.
diff --git a/docs/usage/commits.md b/docs/usage/commits.md
new file mode 100644
index 0000000..68a9e43
--- /dev/null
+++ b/docs/usage/commits.md
@@ -0,0 +1,81 @@
+# Commit and pull request policy
+
+Install a published preset and commitlint at the repository root, then commit the
+manifest and lockfile:
+
+```bash
+npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config
+```
+
+Use one root commitlint configuration, for example `.commitlintrc.json`:
+
+```json
+{
+ "extends": ["@hoverkraft/commitlint-config"]
+}
+```
+
+See commitlint's [shareable configuration reference](https://commitlint.js.org/concepts/shareable-config.html).
+Run the same preset version in local hooks, commit checks and pull request checks.
+
+## Blocking rules and warnings
+
+The preset extends `@commitlint/config-conventional` and changes four rule
+severities: `subject-case`, `header-max-length`, `body-max-line-length`, and
+`footer-max-line-length` become warnings. The line-length threshold stays at 100.
+All other rules retain their severities, including errors for unsupported types,
+missing subjects, uppercase types, header whitespace and trailing subject periods.
+
+These style warnings apply to every author. There is no bot bypass or message
+rewriting. The [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/)
+does not impose a subject case or a character limit. Repository overrides remain
+supported, including stricter rules. A blocking length limit can reject generated
+dependency titles even when their prefix is configured correctly.
+
+## Local and CI validation
+
+After installing locked dependencies with `npm ci --ignore-scripts`, validate a
+message through commitlint or let the repository's commit hook discover the config:
+
+```bash
+printf '%s\n' 'build(deps): bump a dependency' | npx --no-install commitlint
+```
+
+CI needs the same preset installed before linting. For Hoverkraft's reusable
+workflows, follow the
+[common commit process](https://github.com/hoverkraft-tech/ci-github-common/blob/main/docs/usage/commits.md)
+and select a release supporting this package. The workflow integration is tracked
+in [ci-github-common PR 687](https://github.com/hoverkraft-tech/ci-github-common/pull/687).
+Without that integration, install the preset before invoking commitlint or the
+standalone title action. The existing Super-Linter image supplies the conventional
+preset only; extending this package requires installing it in the repository or
+including it in a custom lint image.
+
+Keep commitlint strict mode disabled when warnings should remain nonblocking.
+Use the validated pull request title for squash commits. Editing the final merge
+message can change its validity after the title check.
+
+## Dependabot
+
+Set message options explicitly in every ecosystem entry:
+
+```yaml
+commit-message:
+ prefix: build
+ include: scope
+```
+
+The prefix also applies to development dependencies unless `prefix-development`
+overrides it. The scope becomes `deps` or `deps-dev`. Keep group names concise
+because they appear in titles. See the
+[Dependabot options reference](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#commit-message).
+
+Dependabot requires a configuration in each repository's `.github` directory and
+has no documented remote `extends` option. Keep ecosystems, directories, schedules
+and groups local. This npm preset configures commitlint, not Dependabot.
+
+Generated subjects can be capitalized or longer than 100 characters. The preset
+reports those style differences as warnings while keeping conventional errors
+blocking. Configuration updates do not rewrite existing commits, and renaming a
+pull request changes only its title. Dependency installation or application test
+failures need separate fixes.
diff --git a/index.json b/index.json
new file mode 100644
index 0000000..c9fc553
--- /dev/null
+++ b/index.json
@@ -0,0 +1,13 @@
+{
+ "extends": ["@commitlint/config-conventional"],
+ "rules": {
+ "subject-case": [
+ 1,
+ "never",
+ ["sentence-case", "start-case", "pascal-case", "upper-case"]
+ ],
+ "header-max-length": [1, "always", 100],
+ "body-max-line-length": [1, "always", 100],
+ "footer-max-line-length": [1, "always", 100]
+ }
+}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..6f3a5f1
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,628 @@
+{
+ "name": "@hoverkraft/commitlint-config",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "@hoverkraft/commitlint-config",
+ "version": "0.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-conventional": "21.2.4"
+ },
+ "devDependencies": {
+ "@commitlint/lint": "21.2.4",
+ "@commitlint/load": "21.2.4"
+ },
+ "engines": {
+ "node": ">=24.0.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.17.tgz",
+ "integrity": "sha512-IdlVpcDeoDATtN2cfmnVk0A4XJKhu7SlpGuSaiOFdko09YC1MD07WokWUSEdw5R2o4o8VObX2LzViQW6VXnzkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.17",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.17.tgz",
+ "integrity": "sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@commitlint/config-conventional": {
+ "version": "21.2.4",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.2.4.tgz",
+ "integrity": "sha512-IRldtwgNmR0SySR7wizFbhRmq45lPt6H3XCNTMyVN7jrPLgi8JlTRR6Eg1HLWUQt9P1Lh3k6eY25ilDa47EE6w==",
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.2.3",
+ "conventional-changelog-conventionalcommits": "^10.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/config-validator": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-21.3.0.tgz",
+ "integrity": "sha512-7xpkUIhTOrkZAZ89Qdflb3FuZNFe1wFLF17qqxCUJUtw6X6jLZk1ziIj+fzAeW64KaMW/T5MHHa/KaQCoCghqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "ajv": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/ensure": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-21.3.0.tgz",
+ "integrity": "sha512-quMTkkqv/ESih+faPbSBW9guBEmSDXfJMtTYTQvV3iz5leLO6Wqes8q5N6TtLkF113pO9zu1soW09BdbTskcnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "es-toolkit": "^1.46.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/execute-rule": {
+ "version": "21.0.1",
+ "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-21.0.1.tgz",
+ "integrity": "sha512-RifH+FmImozKBE6mozhF4K3r2RRKP7SMi/Q/zLCmExtp5e05lhHOUYqGBlFBAGNHaZxU/WYw1XuugYK9jQzqnA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/is-ignored": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-21.3.0.tgz",
+ "integrity": "sha512-YF13lm57pxSN++LklBZmrAMOPAJSm/jNm3ictyRoFw2Zro7d9cMRttQ4pLKPE+UVHzbUCq+hVrZKtH9hGKG9gw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "semver": "^7.6.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/lint": {
+ "version": "21.2.4",
+ "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-21.2.4.tgz",
+ "integrity": "sha512-HR8SGl1oEGfi/cqyBipanVY0a9CfEzIcJjPC37t7oQedaUUngw3d5E17g5Cfr2S3p6KsZM7UOHFq5fXHLRh7DQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/is-ignored": "^21.2.3",
+ "@commitlint/parse": "^21.2.3",
+ "@commitlint/rules": "^21.2.4",
+ "@commitlint/types": "^21.2.3"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/load": {
+ "version": "21.2.4",
+ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-21.2.4.tgz",
+ "integrity": "sha512-Gi+aAW9nL8XPgvg8kIO0gZOw1/ePvpDLkv1bm8tj0RqenhNtCzk0frtctJhl41uIAP7OSx9bgQ6HCOa9En4g2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^21.2.3",
+ "@commitlint/execute-rule": "^21.0.1",
+ "@commitlint/resolve-extends": "^21.2.3",
+ "@commitlint/types": "^21.2.3",
+ "cosmiconfig": "^9.0.1",
+ "es-toolkit": "^1.46.0",
+ "is-plain-obj": "^4.1.0",
+ "jiti": "^2.6.1",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/message": {
+ "version": "21.2.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-21.2.0.tgz",
+ "integrity": "sha512-YxGoiXD/HXNXLJPrQwE5poXa+XH0CBEm+mdvbHQP0g6MV/dmJyUFCzPNzZbxL93GvZ70TmtTK0Z0/IBpAqHv8g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/parse": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-21.3.0.tgz",
+ "integrity": "sha512-y1gy51vLPxfpagSDZfHqOfkpbHZBFKYk6PIe2uN7Qc+rxOpTAp1NstQSjbJ8DxiMkfeMtlCMuGC1QOf+HGVdEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "conventional-changelog-angular": "^9.0.0",
+ "conventional-commits-parser": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/resolve-extends": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-21.3.0.tgz",
+ "integrity": "sha512-YTRgtoB/0fLGK5lL1zN8RKe9PsKoh79qCnXUjocKhlbkLR16vwYLtkdWUFhj+UA4vQPEmJI4U1nJJHwlijUxIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^21.3.0",
+ "@commitlint/types": "^21.3.0",
+ "es-toolkit": "^1.46.0",
+ "global-directory": "^5.0.0",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/rules": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-21.3.0.tgz",
+ "integrity": "sha512-xq6eQIazhsJRvfXygKbrhDL0zlHQa0tfHtPW1t7+8LEAVMQ6ALpXdqUjvWWzwNUr0ydt0aCqSO1o+Dqa7f7pKA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/ensure": "^21.3.0",
+ "@commitlint/message": "^21.2.0",
+ "@commitlint/to-lines": "^21.0.1",
+ "@commitlint/types": "^21.3.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/to-lines": {
+ "version": "21.0.1",
+ "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-21.0.1.tgz",
+ "integrity": "sha512-bd1BFII7p1EQZre9Kaj+kKaMFP3cFCdt21K7DItVux9XP5WjLgJ0/Uy1pJJh9aPwVJ6SKg62PxqlZaHI8hQAXw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/types": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz",
+ "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==",
+ "license": "MIT",
+ "dependencies": {
+ "conventional-commits-parser": "^7.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@conventional-changelog/template": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz",
+ "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/@simple-libs/stream-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz",
+ "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/dangreen"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/argue-cli": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz",
+ "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/dangreen"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/conventional-changelog-angular": {
+ "version": "9.4.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-9.4.0.tgz",
+ "integrity": "sha512-HdxRxuS8bBXVIuo4V82gvSwAXT0vYQUizrjs/izmPg5JdDstr8v8I5hduGL3iQbG+o310dUDxC4+LetuS5hu9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@conventional-changelog/template": "^1.4.0"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/conventional-changelog-conventionalcommits": {
+ "version": "10.4.1",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz",
+ "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==",
+ "license": "ISC",
+ "dependencies": {
+ "@conventional-changelog/template": "^1.4.0"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/conventional-commits-parser": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz",
+ "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@simple-libs/stream-utils": "^2.0.0",
+ "argue-cli": "^3.1.0"
+ },
+ "bin": {
+ "conventional-commits-parser": "dist/cli/index.js"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz",
+ "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.1",
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-toolkit": {
+ "version": "1.53.2",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.2.tgz",
+ "integrity": "sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==",
+ "dev": true,
+ "license": "MIT",
+ "workspaces": [
+ "docs",
+ "benchmarks",
+ "tests/types",
+ "tests/browser-compat"
+ ]
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/global-directory": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz",
+ "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "6.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh/node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/ini": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz",
+ "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^20.17.0 || >=22.9.0"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..089b9a4
--- /dev/null
+++ b/package.json
@@ -0,0 +1,35 @@
+{
+ "name": "@hoverkraft/commitlint-config",
+ "version": "0.0.0",
+ "description": "Shared Hoverkraft Conventional Commits policy for commits and pull request titles",
+ "main": "index.json",
+ "exports": "./index.json",
+ "files": [
+ "index.json"
+ ],
+ "scripts": {
+ "test": "node --test test/policy.test.mjs",
+ "test:ci": "node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=junit.xml test/policy.test.mjs"
+ },
+ "author": "hoverkraft",
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/hoverkraft-tech/commitlint-config.git"
+ },
+ "homepage": "https://github.com/hoverkraft-tech/commitlint-config",
+ "bugs": "https://github.com/hoverkraft-tech/commitlint-config/issues",
+ "publishConfig": {
+ "access": "public"
+ },
+ "dependencies": {
+ "@commitlint/config-conventional": "21.2.4"
+ },
+ "devDependencies": {
+ "@commitlint/lint": "21.2.4",
+ "@commitlint/load": "21.2.4"
+ },
+ "engines": {
+ "node": ">=24.0.0"
+ }
+}
diff --git a/test/consumer/.commitlintrc.json b/test/consumer/.commitlintrc.json
new file mode 100644
index 0000000..5388042
--- /dev/null
+++ b/test/consumer/.commitlintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": ["@hoverkraft/commitlint-config"]
+}
diff --git a/test/consumer/package-lock.json b/test/consumer/package-lock.json
new file mode 100644
index 0000000..a699108
--- /dev/null
+++ b/test/consumer/package-lock.json
@@ -0,0 +1,966 @@
+{
+ "name": "commitlint-config-consumer",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "commitlint-config-consumer",
+ "version": "0.0.0",
+ "devDependencies": {
+ "@commitlint/cli": "21.2.4"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.17.tgz",
+ "integrity": "sha512-IdlVpcDeoDATtN2cfmnVk0A4XJKhu7SlpGuSaiOFdko09YC1MD07WokWUSEdw5R2o4o8VObX2LzViQW6VXnzkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.17",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.17",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.17.tgz",
+ "integrity": "sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@commitlint/cli": {
+ "version": "21.2.4",
+ "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-21.2.4.tgz",
+ "integrity": "sha512-g3M/wrQdElqGH5vROIeL2QiYIxrzqUkhCgsDyDlWfKEyQdCt10OyMB28W2cJtpZ+VNGMvmaN923infr1hOfyrg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-conventional": "^21.2.4",
+ "@commitlint/format": "^21.2.3",
+ "@commitlint/lint": "^21.2.4",
+ "@commitlint/load": "^21.2.4",
+ "@commitlint/read": "^21.2.3",
+ "@commitlint/types": "^21.2.3",
+ "tinyexec": "^1.0.0",
+ "yargs": "^18.0.0"
+ },
+ "bin": {
+ "commitlint": "cli.js"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/config-conventional": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.3.0.tgz",
+ "integrity": "sha512-jWTouDSbhDqlJyJCN3RW0v7nxhU28MsUb5Gsrp8An6W4Xqa3GkrvjMdRbnoVX7S8oVgHy12p8Pmq2r8PCPOQ7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "conventional-changelog-conventionalcommits": "^10.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/config-validator": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-21.3.0.tgz",
+ "integrity": "sha512-7xpkUIhTOrkZAZ89Qdflb3FuZNFe1wFLF17qqxCUJUtw6X6jLZk1ziIj+fzAeW64KaMW/T5MHHa/KaQCoCghqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "ajv": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/ensure": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-21.3.0.tgz",
+ "integrity": "sha512-quMTkkqv/ESih+faPbSBW9guBEmSDXfJMtTYTQvV3iz5leLO6Wqes8q5N6TtLkF113pO9zu1soW09BdbTskcnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "es-toolkit": "^1.46.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/execute-rule": {
+ "version": "21.0.1",
+ "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-21.0.1.tgz",
+ "integrity": "sha512-RifH+FmImozKBE6mozhF4K3r2RRKP7SMi/Q/zLCmExtp5e05lhHOUYqGBlFBAGNHaZxU/WYw1XuugYK9jQzqnA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/format": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-21.3.0.tgz",
+ "integrity": "sha512-iY/pqG9e+cgJoxN02oai+2iDzmCODrSOVn/C/ggDiEtUBRu+8jU+tvRz3ola+w7RNIPp9JPJNInQAkX77r9MiQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/is-ignored": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-21.3.0.tgz",
+ "integrity": "sha512-YF13lm57pxSN++LklBZmrAMOPAJSm/jNm3ictyRoFw2Zro7d9cMRttQ4pLKPE+UVHzbUCq+hVrZKtH9hGKG9gw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "semver": "^7.6.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/lint": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-21.3.0.tgz",
+ "integrity": "sha512-SyuGd4clg7My/Z6+OKDIh9vYlwTjTGlePKkDp92pU28EE80WVnzShZCmjD00mMGMWkFB+LdzNFm+eX31+CPHaw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/is-ignored": "^21.3.0",
+ "@commitlint/parse": "^21.3.0",
+ "@commitlint/rules": "^21.3.0",
+ "@commitlint/types": "^21.3.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/load": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-21.3.0.tgz",
+ "integrity": "sha512-1TBooVkFOEvvyf9cxpNTC9iBxtc6lPjzRjVVyaGywLjaRIdlUgeEZwxaSFCKGl2Vu35uAnO4eoeaCkfF8QXjpg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^21.3.0",
+ "@commitlint/execute-rule": "^21.0.1",
+ "@commitlint/resolve-extends": "^21.3.0",
+ "@commitlint/types": "^21.3.0",
+ "cosmiconfig": "^9.0.1",
+ "es-toolkit": "^1.46.0",
+ "is-plain-obj": "^4.1.0",
+ "jiti": "^2.6.1",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/message": {
+ "version": "21.2.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-21.2.0.tgz",
+ "integrity": "sha512-YxGoiXD/HXNXLJPrQwE5poXa+XH0CBEm+mdvbHQP0g6MV/dmJyUFCzPNzZbxL93GvZ70TmtTK0Z0/IBpAqHv8g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/parse": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-21.3.0.tgz",
+ "integrity": "sha512-y1gy51vLPxfpagSDZfHqOfkpbHZBFKYk6PIe2uN7Qc+rxOpTAp1NstQSjbJ8DxiMkfeMtlCMuGC1QOf+HGVdEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/types": "^21.3.0",
+ "conventional-changelog-angular": "^9.0.0",
+ "conventional-commits-parser": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/read": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-21.3.0.tgz",
+ "integrity": "sha512-lEmt2O8RQ9ywSmAI+HW/VbOXBmz+0KuVFhr38eqcr/bWRySTUu7kE6w/K370KPDlTHlv4XMYSaRp/n5WXt9soQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/top-level": "^21.2.0",
+ "@commitlint/types": "^21.3.0",
+ "@conventional-changelog/git-client": "^3.0.0",
+ "tinyexec": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/resolve-extends": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-21.3.0.tgz",
+ "integrity": "sha512-YTRgtoB/0fLGK5lL1zN8RKe9PsKoh79qCnXUjocKhlbkLR16vwYLtkdWUFhj+UA4vQPEmJI4U1nJJHwlijUxIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/config-validator": "^21.3.0",
+ "@commitlint/types": "^21.3.0",
+ "es-toolkit": "^1.46.0",
+ "global-directory": "^5.0.0",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/rules": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-21.3.0.tgz",
+ "integrity": "sha512-xq6eQIazhsJRvfXygKbrhDL0zlHQa0tfHtPW1t7+8LEAVMQ6ALpXdqUjvWWzwNUr0ydt0aCqSO1o+Dqa7f7pKA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@commitlint/ensure": "^21.3.0",
+ "@commitlint/message": "^21.2.0",
+ "@commitlint/to-lines": "^21.0.1",
+ "@commitlint/types": "^21.3.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/to-lines": {
+ "version": "21.0.1",
+ "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-21.0.1.tgz",
+ "integrity": "sha512-bd1BFII7p1EQZre9Kaj+kKaMFP3cFCdt21K7DItVux9XP5WjLgJ0/Uy1pJJh9aPwVJ6SKg62PxqlZaHI8hQAXw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/top-level": {
+ "version": "21.2.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-21.2.0.tgz",
+ "integrity": "sha512-Y5gmQ+KxzqCrBFJfLvFEPvvwD3LDiNZoTT2yeFBm96M8qhmqSzQc5DvX3rheAaAMjyIvMXOCLS/mWfdpONsjyQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@commitlint/types": {
+ "version": "21.3.0",
+ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz",
+ "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "conventional-commits-parser": "^7.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@conventional-changelog/git-client": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/@conventional-changelog/git-client/-/git-client-3.2.0.tgz",
+ "integrity": "sha512-sD/E0vzpkoDz/dqM1Hhv0ihC4KBw6RXjefeO8SG1XrX+wGkMxe1pKeedkKDPCtr2JjuhbuS9aJNgOvnT8hbeBw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@simple-libs/child-process-utils": "^2.0.0",
+ "@simple-libs/stream-utils": "^2.0.0",
+ "verkit": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "peerDependencies": {
+ "conventional-commits-filter": "^6.0.1",
+ "conventional-commits-parser": "^7.1.3"
+ },
+ "peerDependenciesMeta": {
+ "conventional-commits-filter": {
+ "optional": true
+ },
+ "conventional-commits-parser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@conventional-changelog/template": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz",
+ "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/@simple-libs/child-process-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@simple-libs/child-process-utils/-/child-process-utils-2.0.0.tgz",
+ "integrity": "sha512-dvNoRKLijXnD0XoJAz94pbNuB5GQgDr55UhpSPhffDkTT0Cmcqh9jSCOtwfT2d4H6MI9E7c4SgtMuJXZ6F3c6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@simple-libs/stream-utils": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/dangreen"
+ }
+ },
+ "node_modules/@simple-libs/stream-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz",
+ "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/dangreen"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "6.6.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz",
+ "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/argue-cli": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz",
+ "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/dangreen"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",
+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^7.2.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/conventional-changelog-angular": {
+ "version": "9.4.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-9.4.0.tgz",
+ "integrity": "sha512-HdxRxuS8bBXVIuo4V82gvSwAXT0vYQUizrjs/izmPg5JdDstr8v8I5hduGL3iQbG+o310dUDxC4+LetuS5hu9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@conventional-changelog/template": "^1.4.0"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/conventional-changelog-conventionalcommits": {
+ "version": "10.4.1",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz",
+ "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@conventional-changelog/template": "^1.4.0"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/conventional-commits-parser": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz",
+ "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@simple-libs/stream-utils": "^2.0.0",
+ "argue-cli": "^3.1.0"
+ },
+ "bin": {
+ "conventional-commits-parser": "dist/cli/index.js"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz",
+ "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.1",
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-toolkit": {
+ "version": "1.53.2",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.2.tgz",
+ "integrity": "sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==",
+ "dev": true,
+ "license": "MIT",
+ "workspaces": [
+ "docs",
+ "benchmarks",
+ "tests/types",
+ "tests/browser-compat"
+ ]
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-east-asian-width": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",
+ "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/global-directory": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz",
+ "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "6.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh/node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/ini": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz",
+ "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^20.17.0 || >=22.9.0"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz",
+ "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/tinyexec": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz",
+ "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/verkit": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.5.0.tgz",
+ "integrity": "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sxzz"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz",
+ "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^9.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "string-width": "^8.2.1",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^22.0.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=23"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "22.0.0",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",
+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=23"
+ }
+ }
+ }
+}
diff --git a/test/consumer/package.json b/test/consumer/package.json
new file mode 100644
index 0000000..b2b73d7
--- /dev/null
+++ b/test/consumer/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "commitlint-config-consumer",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "test": "echo 'build(deps): Bump a dependency' | commitlint --verbose"
+ },
+ "devDependencies": {
+ "@commitlint/cli": "21.2.4"
+ }
+}
diff --git a/test/policy.test.mjs b/test/policy.test.mjs
new file mode 100644
index 0000000..9c64c82
--- /dev/null
+++ b/test/policy.test.mjs
@@ -0,0 +1,83 @@
+import assert from "node:assert/strict";
+import { test } from "node:test";
+import { fileURLToPath } from "node:url";
+import lint from "@commitlint/lint";
+import load from "@commitlint/load";
+
+const preset = fileURLToPath(new URL("../index.json", import.meta.url));
+const config = await load({ extends: [preset] });
+
+const cases = [
+ ["feature", "feat: add a validator", [], []],
+ ["breaking change", "feat(api)!: require a release tag", [], []],
+ [
+ "capitalized dependency update",
+ "build(deps): Bump a dependency",
+ [],
+ ["subject-case"],
+ ],
+ ["long header", "fix: ".padEnd(101, "x"), [], ["header-max-length"]],
+ [
+ "missing prefix",
+ "update dependencies",
+ ["subject-empty", "type-empty"],
+ [],
+ ],
+ ["missing subject", "fix:", ["subject-empty", "type-empty"], []],
+ [
+ "unknown type with a style warning",
+ "unknown: Bump a dependency",
+ ["type-enum"],
+ ["subject-case"],
+ ],
+ [
+ "uppercase type",
+ "FIX: update dependencies",
+ ["type-case", "type-enum"],
+ [],
+ ],
+ ["trailing period", "fix: update dependencies.", ["subject-full-stop"], []],
+ ["header whitespace", "fix: update dependencies ", ["header-trim"], []],
+ [
+ "long body and footer",
+ `build(deps): update dependencies\n\n${"dependency details ".repeat(10)}\n\nBREAKING CHANGE: ${"migration details ".repeat(10)}`,
+ [],
+ ["body-max-line-length", "footer-max-line-length"],
+ ],
+];
+
+for (const [name, message, errors, warnings] of cases) {
+ test(name, async () => {
+ const result = await lint(message, config.rules, {
+ parserOpts: config.parserPreset?.parserOpts,
+ defaultIgnores: false,
+ });
+ assert.equal(result.valid, errors.length === 0);
+ assert.deepEqual(result.errors.map(({ name }) => name).sort(), errors);
+ assert.deepEqual(result.warnings.map(({ name }) => name).sort(), warnings);
+ });
+}
+
+test("repository overrides can keep a blocking length limit", async () => {
+ const strict = await load({
+ extends: [preset],
+ rules: { "header-max-length": [2, "always", 100] },
+ });
+ const result = await lint(
+ "build(deps): Bump a dependency ".padEnd(101, "x"),
+ strict.rules,
+ {
+ parserOpts: strict.parserPreset?.parserOpts,
+ defaultIgnores: false,
+ },
+ );
+ assert.equal(result.valid, false);
+ assert.deepEqual(
+ result.errors.map(({ name }) => name),
+ ["header-max-length"],
+ );
+ assert.deepEqual(
+ result.warnings.map(({ name }) => name),
+ ["subject-case"],
+ );
+});