From 11888ec50db3f80caf0c57cc59560c64ac37ee97 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 15:02:15 +0100 Subject: [PATCH 1/3] feat: add shared commitlint preset and package release workflow --- .commitlintrc.json | 3 + .github/dependabot.yml | 45 + .github/linters/.jscpd.json | 6 + .github/workflows/__shared-ci.yml | 50 + .github/workflows/ci.yml | 27 + .github/workflows/prepare-release.yml | 14 + .github/workflows/release.yml | 59 ++ .github/workflows/semantic-pull-request.yml | 13 + .gitignore | 5 + AGENTS.md | 13 + Dockerfile | 6 + Makefile | 13 + README.md | 24 + biome.json | 3 + docs/README.md | 6 + docs/adr/0001-share-commitlint-policy.md | 49 + docs/development/releasing.md | 55 ++ docs/development/validation.md | 27 + docs/usage/commits.md | 81 ++ index.json | 13 + package-lock.json | 628 +++++++++++++ package.json | 35 + test/consumer/.commitlintrc.json | 3 + test/consumer/package-lock.json | 966 ++++++++++++++++++++ test/consumer/package.json | 11 + test/policy.test.mjs | 83 ++ 26 files changed, 2238 insertions(+) create mode 100644 .commitlintrc.json create mode 100644 .github/dependabot.yml create mode 100644 .github/linters/.jscpd.json create mode 100644 .github/workflows/__shared-ci.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/prepare-release.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/semantic-pull-request.yml create mode 100644 .gitignore create mode 100644 AGENTS.md create mode 100644 Dockerfile create mode 100644 Makefile create mode 100644 biome.json create mode 100644 docs/README.md create mode 100644 docs/adr/0001-share-commitlint-policy.md create mode 100644 docs/development/releasing.md create mode 100644 docs/development/validation.md create mode 100644 docs/usage/commits.md create mode 100644 index.json create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 test/consumer/.commitlintrc.json create mode 100644 test/consumer/package-lock.json create mode 100644 test/consumer/package.json create mode 100644 test/policy.test.mjs 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/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..19f382c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,45 @@ +version: 2 + +updates: + - 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..13dabba --- /dev/null +++ b/.github/linters/.jscpd.json @@ -0,0 +1,6 @@ +{ + "threshold": 0, + "reporters": ["consoleFull"], + "ignore": ["**/.git/**", "**/node_modules/**", "**/package-lock.json"], + "absolute": true +} 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/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9397653 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Continuous Integration + +on: + push: + branches: [main] + 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/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/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..8aaa619 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +SHELL := /bin/bash + +.PHONY: setup test lint + +setup: ## Install locked dependencies + npm ci --ignore-scripts + +test: ## Run policy tests + npm test + +lint: ## Run the shared Super-Linter image + docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag commitlint-config-linter:local . + docker run --rm --volume "$(CURDIR):/workspace" --env DEFAULT_WORKSPACE=/workspace --env CREATE_LOG_FILE=false commitlint-config-linter:local diff --git a/README.md b/README.md index e15974e..9ed13ea 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ # Hoverkraft commitlint configuration Shared Conventional Commits policy for commit messages and pull request titles. + +Requires Node.js 24 or later. Install a published version with commitlint: + +```bash +npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config +``` + +Configure `.commitlintrc.json` at the repository root: + +```json +{ + "extends": ["@hoverkraft/commitlint-config"] +} +``` + +The preset extends `@commitlint/config-conventional`. Subject casing and lines +longer than 100 characters produce warnings. Other conventional rules retain their +severities. The same policy applies to every author, including dependency bots. + +- [Usage and Dependabot configuration](docs/usage/commits.md) +- [Development and validation](docs/development/validation.md) +- [Releasing](docs/development/releasing.md) + +Licensed under [MIT](LICENSE). 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..2381d41 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,6 @@ +# Documentation + +- [Usage and dependency updates](usage/commits.md) +- [Development and validation](development/validation.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/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..8e4d43d --- /dev/null +++ b/docs/development/validation.md @@ -0,0 +1,27 @@ +# 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`. + +```bash +npm ci --ignore-scripts +npm test +make lint +``` + +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"], + ); +}); From b7f9fe9b784403c7a650c5ceeb83561694085994 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 15:38:38 +0100 Subject: [PATCH 2/3] chore: align preset repository with Hoverkraft conventions --- .github/linters/.jscpd.json | 8 ++- .github/workflows/main-ci.yml | 24 ++++++++ .../workflows/{ci.yml => pull-request-ci.yml} | 4 +- Makefile | 45 ++++++++++++-- README.md | 59 ++++++++++++++++--- docs/development/validation.md | 17 +++++- 6 files changed, 140 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/main-ci.yml rename .github/workflows/{ci.yml => pull-request-ci.yml} (87%) diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index 13dabba..c4fdddc 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -1,6 +1,12 @@ { "threshold": 0, "reporters": ["consoleFull"], - "ignore": ["**/.git/**", "**/node_modules/**", "**/package-lock.json"], + "ignore": [ + "**/.git/**", + "**/node_modules/**", + "**/package-lock.json", + "**/.github/workflows/main-ci.yml", + "**/.github/workflows/pull-request-ci.yml" + ], "absolute": true } 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/ci.yml b/.github/workflows/pull-request-ci.yml similarity index 87% rename from .github/workflows/ci.yml rename to .github/workflows/pull-request-ci.yml index 9397653..8747d7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -1,8 +1,6 @@ -name: Continuous Integration +name: Pull request - Continuous Integration on: - push: - branches: [main] pull_request: branches: [main] merge_group: diff --git a/Makefile b/Makefile index 8aaa619..8b6d50d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,12 @@ SHELL := /bin/bash -.PHONY: setup test lint +.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 @@ -8,6 +14,37 @@ setup: ## Install locked dependencies test: ## Run policy tests npm test -lint: ## Run the shared Super-Linter image - docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag commitlint-config-linter:local . - docker run --rm --volume "$(CURDIR):/workspace" --env DEFAULT_WORKSPACE=/workspace --env CREATE_LOG_FILE=false commitlint-config-linter:local +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 9ed13ea..2807769 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,45 @@ -# Hoverkraft commitlint configuration +# @hoverkraft/commitlint-config Shared Conventional Commits policy for commit messages and pull request titles. -Requires Node.js 24 or later. Install a published version with commitlint: +--- + + + +![GitHub Verified Creator](https://img.shields.io/badge/GitHub-Verified%20Creator-4493F8?logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJyZ2IoNjgsIDE0NywgMjQ4KSI%2BCiAgPHBhdGggZD0ibTkuNTg1LjUyLjkyOS42OGMuMTUzLjExMi4zMzEuMTg2LjUxOC4yMTVsMS4xMzguMTc1YTIuNjc4IDIuNjc4IDAgMCAxIDIuMjQgMi4yNGwuMTc0IDEuMTM5Yy4wMjkuMTg3LjEwMy4zNjUuMjE1LjUxOGwuNjguOTI4YTIuNjc3IDIuNjc3IDAgMCAxIDAgMy4xN2wtLjY4LjkyOGExLjE3NCAxLjE3NCAwIDAgMC0uMjE1LjUxOGwtLjE3NSAxLjEzOGEyLjY3OCAyLjY3OCAwIDAgMS0yLjI0MSAyLjI0MWwtMS4xMzguMTc1YTEuMTcgMS4xNyAwIDAgMC0uNTE4LjIxNWwtLjkyOC42OGEyLjY3NyAyLjY3NyAwIDAgMS0zLjE3IDBsLS45MjgtLjY4YTEuMTc0IDEuMTc0IDAgMCAwLS41MTgtLjIxNUwzLjgzIDE0LjQxYTIuNjc4IDIuNjc4IDAgMCAxLTIuMjQtMi4yNGwtLjE3NS0xLjEzOGExLjE3IDEuMTcgMCAwIDAtLjIxNS0uNTE4bC0uNjgtLjkyOGEyLjY3NyAyLjY3NyAwIDAgMSAwL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MDYgMEw0LjcyIDguNzhhLjc1MS43NTEgMCAwIDEgLjAxOC0xLjA0Mi43NTEuNzUxIDAgMCAxIDEuMDQyLS4wMThMNyA4Ljk0bDMuMjItMy4yMmEuNzUxLjc1MSAwIDAgMSAxLjA0Mi4wMTguNzUxLjc1MSAwIDAgMSAuMDE4IDEuMDQyWiI%2BPC9wYXRoPgo8L3N2Zz4K) +[![Continuous Integration](https://github.com/hoverkraft-tech/commitlint-config/actions/workflows/main-ci.yml/badge.svg)](https://github.com/hoverkraft-tech/commitlint-config/actions/workflows/main-ci.yml) +[![License](https://img.shields.io/badge/License-MIT-blue)](#license) +[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing) +[![Release](https://img.shields.io/github/v/release/hoverkraft-tech/commitlint-config)](https://github.com/hoverkraft-tech/commitlint-config/releases) +[![GitHub Stars](https://img.shields.io/github/stars/hoverkraft-tech/commitlint-config?style=social)](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 @@ -16,12 +48,25 @@ Configure `.commitlintrc.json` at the repository root: } ``` -The preset extends `@commitlint/config-conventional`. Subject casing and lines -longer than 100 characters produce warnings. Other conventional rules retain their -severities. The same policy applies to every author, including dependency bots. +Commit the manifest, lockfile and configuration. See the +[usage guide](docs/usage/commits.md) for local hooks, CI and Dependabot configuration. -- [Usage and Dependabot configuration](docs/usage/commits.md) +## 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) -Licensed under [MIT](LICENSE). +## 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/docs/development/validation.md b/docs/development/validation.md index 8e4d43d..d3b30f7 100644 --- a/docs/development/validation.md +++ b/docs/development/validation.md @@ -4,11 +4,24 @@ 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`. ```bash -npm ci --ignore-scripts -npm test +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 From 974dfe5b4eb4ca923076751fb85c0b5bc7310b65 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 16:07:08 +0100 Subject: [PATCH 3/3] chore: add Hoverkraft devcontainer and repository branding --- .devcontainer/devcontainer-lock.json | 24 ++++++++++++++++++ .devcontainer/devcontainer.json | 35 +++++++++++++++++++++++++++ .github/dependabot.yml | 14 +++++++++++ .github/linters/.jscpd.json | 1 + .github/logo.svg | 15 ++++++++++++ .github/social-preview.png | Bin 0 -> 30934 bytes .github/social-preview.svg | 21 ++++++++++++++++ README.md | 4 +++ docs/README.md | 1 + docs/development/branding.md | 16 ++++++++++++ docs/development/validation.md | 20 +++++++++++++++ 11 files changed, 151 insertions(+) create mode 100644 .devcontainer/devcontainer-lock.json create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/logo.svg create mode 100644 .github/social-preview.png create mode 100644 .github/social-preview.svg create mode 100644 docs/development/branding.md 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 index 19f382c..68e1c5f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,20 @@ 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: - "/" diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index c4fdddc..fcaeebb 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -5,6 +5,7 @@ "**/.git/**", "**/node_modules/**", "**/package-lock.json", + "**/.github/social-preview.svg", "**/.github/workflows/main-ci.yml", "**/.github/workflows/pull-request-ci.yml" ], 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 @@ + + Commitlint config logo + A Git branch and checkmark on the blue Hoverkraft badge. + + + + + + + + + + + + diff --git a/.github/social-preview.png b/.github/social-preview.png new file mode 100644 index 0000000000000000000000000000000000000000..fecb2b94cabd72278787351efee6944b1cf748a7 GIT binary patch literal 30934 zcmeFZc_7qZ^gsL_6n&H>6_JP{ktJ)^HY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TyfL4DoV4&f{zW5x#YB3Eu0Q zWdLG-Z4}Nr3m4>&J4V1e zr!}C}qBZsU4W|t0?Qt6Jxq{d=3_SZO#~aC#fv(pup8mk2Ijmn#gq0%itO@WiLn#); zmFNo%c2N_dI&VvT(pNs_vW{{f#kH`3_Bl05YjZYeW3%8mv$;^3JIs`2s>r_1>1du) z5dGW6ulZYEsXz6hMt<=fxhk3u? zcE<+@_hvKdZfIga>xsB`3i7&+QWNeYMfl0|{aPUQzxIbj6sum2t^V#yH1E9U-P7K1)4xUOBKp z7 zpBDrHGv4Arxq5rdcQ2m?13v1lISeUyQ~iS*ST?Mq*H2RD%4#o3czv;+qikhl6Fr8G$nz# zL0I5Jv`Xdl^v=Ek$Tj8E&|SbeuLtE0kQj7#3dy!kk^UJSC=F+~P-U1O*}O-CGlqQ^ z_$1rTdUiM5{pp&D#93#S)NZvsIFI!25B6Rk1>Q60Gq7$Xb&oLa1Wo;ewW<5<2{mjA zuOdUo!>iQjKMh4vM9OdUS%#5W`J;Fn{C)^}OSn+O1R=OQH;;w;7(Ls!_qB-ctrg@H z0Cb3jpY~<|Prp0JN;_eh3ptcT{H?<$KBAeMF2uaL#xgZoIRjy~yTI>PxLlF}>LukI zm!B{E!(2@1orZ6Q*|Gm9MKeiW`pl^;FI~BJMQn2*kxyOFPF7U@G z7Vo9lJ{I61=$r`q33<@Hr!i)2mBfrHo~2pe0k4@NeZZHFnx%oZTEHrMUY?id2lsqw zEsSj|m&me+HgCgM(4bb=1*DVGjg0pil*g)!bMzl*AN|WW<+5mn_$2iWbO3hE{1a%H zwcDPY32NvLA`tWnV5Kg0A72lvon@{Y0Ynb4K3Ygw!*^6@G4IhvpSe!{wa zBPx{UEu*ZMHD5TrC + Commitlint config by Hoverkraft + Shared Conventional Commits policy for commit messages and pull request titles. + + + diff --git a/README.md b/README.md index 2807769..bd2aebf 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Shared Conventional Commits policy for commit messages and pull request titles. +
+ Commitlint config logo +
+ --- diff --git a/docs/README.md b/docs/README.md index 2381d41..9a00f81 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,5 +2,6 @@ - [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/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/validation.md b/docs/development/validation.md index d3b30f7..3a6c5dd 100644 --- a/docs/development/validation.md +++ b/docs/development/validation.md @@ -3,6 +3,26 @@ 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