Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: conventional-changelog/commitlint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v18.4.4
Choose a base ref
...
head repository: conventional-changelog/commitlint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v18.6.0
Choose a head ref

Commits on Jan 4, 2024

  1. ci: GitHubCI - no need to just run in master branch (#3840)

    When a contributor wants to create a PR for commitlint,
    the normal thing for him to do first is fork the repo and
    create a branch with a different name than master. Then,
    if he pushes his commits, he should be able to see the CI
    status of his fixes before he opens the PR.
    knocte authored Jan 4, 2024
    1
    Copy the full SHA
    f7b6ed6 View commit details

Commits on Jan 5, 2024

  1. docs: add node badge (#3841)

    btea authored Jan 5, 2024
    1
    Copy the full SHA
    ee69bea View commit details
  2. chore: update dependency @types/git-raw-commits to v2.0.4 (#3744)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 5, 2024
    1
    Copy the full SHA
    6c3f9fc View commit details

Commits on Jan 6, 2024

  1. 1
    Copy the full SHA
    fdb8210 View commit details

Commits on Jan 7, 2024

  1. chore: update typescript-eslint monorepo to v6.18.0 (#3844)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 7, 2024
    1
    Copy the full SHA
    a72cffc View commit details

Commits on Jan 8, 2024

  1. chore: update dependency @types/node to v18.19.5 (#3845)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 8, 2024
    1
    Copy the full SHA
    96d7e5b View commit details

Commits on Jan 9, 2024

  1. chore: update typescript-eslint monorepo to v6.18.1 (#3846)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 9, 2024
    1
    Copy the full SHA
    01e1ad9 View commit details
  2. build(deps): bump follow-redirects from 1.15.2 to 1.15.4 (#3847)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.4)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 9, 2024
    1
    Copy the full SHA
    b528d29 View commit details
  3. chore: update dependency @types/node to v18.19.6 (#3848)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 9, 2024
    1
    Copy the full SHA
    9392295 View commit details

Commits on Jan 10, 2024

  1. chore: update dependency eslint-plugin-jest to v27.6.2 (#3849)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 10, 2024
    1
    Copy the full SHA
    d92f575 View commit details

Commits on Jan 13, 2024

  1. chore: update dependency eslint-plugin-jest to v27.6.3 (#3851)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 13, 2024
    1
    Copy the full SHA
    0b28f9e View commit details

Commits on Jan 15, 2024

  1. chore: update dependency @swc/core to v1.3.103 (#3853)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 15, 2024
    1
    Copy the full SHA
    b3d0ca1 View commit details
  2. chore: update dependency @types/node to v18.19.7 (#3852)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 15, 2024
    1
    Copy the full SHA
    095d3ed View commit details

Commits on Jan 16, 2024

  1. chore: update typescript-eslint monorepo to v6.19.0 (#3854)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 16, 2024
    1
    Copy the full SHA
    fb0b43c View commit details

Commits on Jan 17, 2024

  1. chore: update dependency @types/node to v18.19.8 (#3857)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 17, 2024
    1
    Copy the full SHA
    59b3b31 View commit details
  2. 1
    Copy the full SHA
    1e08a17 View commit details
  3. chore: update dependency @swc/core to v1.3.104 (#3859)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 17, 2024
    1
    Copy the full SHA
    bd1c0f4 View commit details

Commits on Jan 18, 2024

  1. chore: update dependency @swc/jest to v0.2.30 (#3860)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 18, 2024
    1
    Copy the full SHA
    d0be172 View commit details

Commits on Jan 21, 2024

  1. chore: update swc monorepo (#3861)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 21, 2024
    1
    Copy the full SHA
    e6be814 View commit details
  2. refactor: use enum instead of hardcoding (#3864)

    Same energy as b3007ee.
    knocte authored Jan 21, 2024
    1
    Copy the full SHA
    e3d2091 View commit details

Commits on Jan 22, 2024

  1. 1
    Copy the full SHA
    6381a2d View commit details
  2. v18.5.0

    escapedcat committed Jan 22, 2024
    1
    Copy the full SHA
    7886d8b View commit details
  3. 1
    Copy the full SHA
    3ede3e0 View commit details
  4. v18.5.1

    escapedcat committed Jan 22, 2024
    1
    Copy the full SHA
    5706af2 View commit details

Commits on Jan 23, 2024

  1. chore: update typescript-eslint monorepo to v6.19.1 (#3868)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 23, 2024
    Copy the full SHA
    a6633a5 View commit details

Commits on Jan 24, 2024

  1. chore: update dependency @types/node to v18.19.9 (#3869)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 24, 2024
    Copy the full SHA
    ddc3260 View commit details

Commits on Jan 25, 2024

  1. chore: update dependency @swc/core to v1.3.106 (#3872)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 25, 2024
    Copy the full SHA
    6d036d6 View commit details
  2. Copy the full SHA
    331579a View commit details
  3. v18.6.0

    escapedcat committed Jan 25, 2024
    Copy the full SHA
    daa8b1b View commit details
Showing with 917 additions and 374 deletions.
  1. +1 −1 .github/workflows/CI.yml
  2. +16 −0 @alias/commitlint-config-angular/CHANGELOG.md
  3. +2 −2 @alias/commitlint-config-angular/package.json
  4. +16 −0 @alias/commitlint-config-nx-scopes/CHANGELOG.md
  5. +2 −2 @alias/commitlint-config-nx-scopes/package.json
  6. +16 −0 @alias/commitlint-config-patternplate/CHANGELOG.md
  7. +2 −2 @alias/commitlint-config-patternplate/package.json
  8. +16 −0 @alias/commitlint/CHANGELOG.md
  9. +3 −3 @alias/commitlint/package.json
  10. +19 −0 @commitlint/cli/CHANGELOG.md
  11. +6 −6 @commitlint/cli/package.json
  12. +45 −9 @commitlint/cli/src/cli.test.ts
  13. +14 −5 @commitlint/cli/src/cli.ts
  14. +2 −1 @commitlint/cli/src/types.ts
  15. +16 −0 @commitlint/config-angular/CHANGELOG.md
  16. +2 −2 @commitlint/config-angular/package.json
  17. +19 −0 @commitlint/config-conventional/CHANGELOG.md
  18. +1 −0 @commitlint/config-conventional/index.js
  19. +2 −2 @commitlint/config-conventional/package.json
  20. +22 −0 @commitlint/config-nx-scopes/CHANGELOG.md
  21. +25 −28 @commitlint/config-nx-scopes/index.js
  22. +1 −1 @commitlint/config-nx-scopes/package.json
  23. +16 −0 @commitlint/config-patternplate/CHANGELOG.md
  24. +2 −2 @commitlint/config-patternplate/package.json
  25. +16 −0 @commitlint/config-validator/CHANGELOG.md
  26. +2 −2 @commitlint/config-validator/package.json
  27. +2 −2 @commitlint/config-validator/src/validate.test.ts
  28. +16 −0 @commitlint/core/CHANGELOG.md
  29. +5 −5 @commitlint/core/package.json
  30. +16 −0 @commitlint/cz-commitlint/CHANGELOG.md
  31. +4 −4 @commitlint/cz-commitlint/package.json
  32. +12 −12 @commitlint/cz-commitlint/src/Process.test.ts
  33. +9 −9 @commitlint/cz-commitlint/src/store/rules.test.ts
  34. +4 −4 @commitlint/cz-commitlint/src/utils/rules.test.ts
  35. +8 −0 @commitlint/ensure/CHANGELOG.md
  36. +2 −2 @commitlint/ensure/package.json
  37. +8 −0 @commitlint/format/CHANGELOG.md
  38. +2 −2 @commitlint/format/package.json
  39. +8 −0 @commitlint/is-ignored/CHANGELOG.md
  40. +3 −3 @commitlint/is-ignored/package.json
  41. +16 −0 @commitlint/lint/CHANGELOG.md
  42. +5 −5 @commitlint/lint/package.json
  43. +19 −18 @commitlint/lint/src/lint.test.ts
  44. +16 −0 @commitlint/load/CHANGELOG.md
  45. +4 −4 @commitlint/load/package.json
  46. +35 −33 @commitlint/load/src/load.test.ts
  47. +8 −0 @commitlint/parse/CHANGELOG.md
  48. +2 −2 @commitlint/parse/package.json
  49. +16 −0 @commitlint/prompt-cli/CHANGELOG.md
  50. +2 −2 @commitlint/prompt-cli/package.json
  51. +16 −0 @commitlint/prompt/CHANGELOG.md
  52. +5 −5 @commitlint/prompt/package.json
  53. +4 −4 @commitlint/prompt/src/library/utils.test.ts
  54. +8 −0 @commitlint/read/CHANGELOG.md
  55. +2 −2 @commitlint/read/package.json
  56. +16 −0 @commitlint/resolve-extends/CHANGELOG.md
  57. +3 −3 @commitlint/resolve-extends/package.json
  58. +19 −19 @commitlint/resolve-extends/src/index.test.ts
  59. +11 −0 @commitlint/rules/CHANGELOG.md
  60. +4 −4 @commitlint/rules/package.json
  61. +77 −0 @commitlint/rules/src/header-trim.test.ts
  62. +26 −0 @commitlint/rules/src/header-trim.ts
  63. +2 −0 @commitlint/rules/src/index.ts
  64. +16 −0 @commitlint/travis-cli/CHANGELOG.md
  65. +2 −2 @commitlint/travis-cli/package.json
  66. +11 −0 @commitlint/types/CHANGELOG.md
  67. +1 −1 @commitlint/types/package.json
  68. +1 −0 @commitlint/types/src/rules.ts
  69. +38 −0 CHANGELOG.md
  70. +6 −4 README.md
  71. +2 −1 docs/reference-cli.md
  72. +5 −0 docs/reference-rules.md
  73. +1 −1 lerna.json
  74. +135 −153 yarn.lock
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- '**'
pull_request:
types: [opened, synchronize]

16 changes: 16 additions & 0 deletions @alias/commitlint-config-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [18.6.0](https://github.com/conventional-changelog/commitlint/compare/v18.5.1...v18.6.0) (2024-01-25)

**Note:** Version bump only for package commitlint-config-angular





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)

**Note:** Version bump only for package commitlint-config-angular





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package commitlint-config-angular
4 changes: 2 additions & 2 deletions @alias/commitlint-config-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-angular",
"version": "18.4.4",
"version": "18.6.0",
"description": "Shareable commitlint config enforcing the angular commit convention",
"files": [
"index.js"
@@ -30,7 +30,7 @@
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-angular": "^18.4.4"
"@commitlint/config-angular": "^18.6.0"
},
"devDependencies": {
"@commitlint/utils": "^18.4.4"
16 changes: 16 additions & 0 deletions @alias/commitlint-config-nx-scopes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [18.5.1](https://github.com/conventional-changelog/commitlint/compare/v18.5.0...v18.5.1) (2024-01-22)

**Note:** Version bump only for package commitlint-config-nx-scopes





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)

**Note:** Version bump only for package commitlint-config-nx-scopes





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package commitlint-config-nx-scopes
4 changes: 2 additions & 2 deletions @alias/commitlint-config-nx-scopes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-nx-scopes",
"version": "18.4.4",
"version": "18.5.1",
"description": "Shareable commitlint config enforcing nx project names as scopes",
"files": [
"index.js"
@@ -30,7 +30,7 @@
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-nx-scopes": "^18.4.4"
"@commitlint/config-nx-scopes": "^18.5.1"
},
"devDependencies": {
"@commitlint/utils": "^18.4.4"
16 changes: 16 additions & 0 deletions @alias/commitlint-config-patternplate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [18.6.0](https://github.com/conventional-changelog/commitlint/compare/v18.5.1...v18.6.0) (2024-01-25)

**Note:** Version bump only for package commitlint-config-patternplate





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)

**Note:** Version bump only for package commitlint-config-patternplate





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package commitlint-config-patternplate
4 changes: 2 additions & 2 deletions @alias/commitlint-config-patternplate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-patternplate",
"version": "18.4.4",
"version": "18.6.0",
"description": "Lint your commits, patternplate-style",
"files": [
"index.js"
@@ -30,7 +30,7 @@
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-patternplate": "^18.4.4"
"@commitlint/config-patternplate": "^18.6.0"
},
"devDependencies": {
"@commitlint/utils": "^18.4.4"
16 changes: 16 additions & 0 deletions @alias/commitlint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [18.6.0](https://github.com/conventional-changelog/commitlint/compare/v18.5.1...v18.6.0) (2024-01-25)

**Note:** Version bump only for package commitlint





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)

**Note:** Version bump only for package commitlint





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package commitlint
6 changes: 3 additions & 3 deletions @alias/commitlint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint",
"version": "18.4.4",
"version": "18.6.0",
"description": "Lint your commit messages",
"files": [
"cli.js"
@@ -35,8 +35,8 @@
},
"license": "MIT",
"dependencies": {
"@commitlint/cli": "^18.4.4",
"@commitlint/types": "^18.4.4"
"@commitlint/cli": "^18.6.0",
"@commitlint/types": "^18.6.0"
},
"devDependencies": {
"@commitlint/test": "^18.0.0",
19 changes: 19 additions & 0 deletions @commitlint/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [18.6.0](https://github.com/conventional-changelog/commitlint/compare/v18.5.1...v18.6.0) (2024-01-25)

**Note:** Version bump only for package @commitlint/cli





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)


### Features

* **cli:** print-config now can be configured to print a json in stdout ([#3863](https://github.com/conventional-changelog/commitlint/issues/3863)) ([6381a2d](https://github.com/conventional-changelog/commitlint/commit/6381a2daa0d5d89ab2195998d63a9690a533d3f2)), closes [#3819](https://github.com/conventional-changelog/commitlint/issues/3819)





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package @commitlint/cli
12 changes: 6 additions & 6 deletions @commitlint/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commitlint/cli",
"version": "18.4.4",
"version": "18.6.0",
"description": "Lint your commit messages",
"files": [
"index.js",
@@ -47,11 +47,11 @@
"lodash.merge": "^4.6.2"
},
"dependencies": {
"@commitlint/format": "^18.4.4",
"@commitlint/lint": "^18.4.4",
"@commitlint/load": "^18.4.4",
"@commitlint/read": "^18.4.4",
"@commitlint/types": "^18.4.4",
"@commitlint/format": "^18.6.0",
"@commitlint/lint": "^18.6.0",
"@commitlint/load": "^18.6.0",
"@commitlint/read": "^18.6.0",
"@commitlint/types": "^18.6.0",
"execa": "^5.0.0",
"lodash.isfunction": "^3.0.9",
"resolve-from": "5.0.0",
54 changes: 45 additions & 9 deletions @commitlint/cli/src/cli.test.ts
Original file line number Diff line number Diff line change
@@ -513,7 +513,8 @@ test('should print help', async () => {
Options:
-c, --color toggle colored output [boolean] [default: true]
-g, --config path to the config file [string]
--print-config print resolved config [boolean] [default: false]
--print-config print resolved config
[string] [choices: "", "text", "json"]
-d, --cwd directory to execute in
[string] [default: (Working Directory)]
-e, --edit read last commit message from the specified file or
@@ -547,14 +548,16 @@ test('should print version', async () => {
expect(actual.stdout).toMatch('@commitlint/cli@');
});

test('should print config', async () => {
const cwd = await gitBootstrap('fixtures/default');
const actual = await cli(['--print-config', '--no-color'], {cwd})();
const stdout = actual.stdout
.replace(/^{[^\n]/g, '{\n ')
.replace(/[^\n]}$/g, '\n}')
.replace(/(helpUrl:)\n[ ]+/, '$1 ');
expect(stdout).toMatchInlineSnapshot(`
describe('should print config', () => {
test('should print config when flag is present but without value', async () => {
const cwd = await gitBootstrap('fixtures/default');
const actual = await cli(['--print-config', 'text', '--no-color'], {cwd})();

const stdout = actual.stdout
.replace(/^{[^\n]/g, '{\n ')
.replace(/[^\n]}$/g, '\n}')
.replace(/(helpUrl:)\n[ ]+/, '$1 ');
expect(stdout).toMatchInlineSnapshot(`
"{
extends: [],
formatter: '@commitlint/format',
@@ -567,6 +570,39 @@ test('should print config', async () => {
prompt: {}
}"
`);
});

test('should print config when flag has `text` value', async () => {
const cwd = await gitBootstrap('fixtures/default');
const actual = await cli(['--print-config=text', '--no-color'], {cwd})();

const stdout = actual.stdout
.replace(/^{[^\n]/g, '{\n ')
.replace(/[^\n]}$/g, '\n}')
.replace(/(helpUrl:)\n[ ]+/, '$1 ');
expect(stdout).toMatchInlineSnapshot(`
"{
extends: [],
formatter: '@commitlint/format',
parserPreset: undefined,
ignores: undefined,
defaultIgnores: undefined,
plugins: {},
rules: { 'type-enum': [ 2, 'never', [ 'foo' ] ] },
helpUrl: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
prompt: {}
}"
`);
});

test('should print config when flag has `json` value', async () => {
const cwd = await gitBootstrap('fixtures/default');
const actual = await cli(['--print-config=json', '--no-color'], {cwd})();

expect(actual.stdout).toMatchInlineSnapshot(
`"{"extends":[],"formatter":"@commitlint/format","plugins":{},"rules":{"type-enum":[2,"never",["foo"]]},"helpUrl":"https://github.com/conventional-changelog/commitlint/#what-is-commitlint\","prompt":{}}"`
);
});
});

async function writePkg(payload: unknown, options: TestOptions) {
19 changes: 14 additions & 5 deletions @commitlint/cli/src/cli.ts
Original file line number Diff line number Diff line change
@@ -38,9 +38,9 @@ const cli = yargs
type: 'string',
},
'print-config': {
type: 'boolean',
default: false,
choices: ['', 'text', 'json'],
description: 'print resolved config',
type: 'string',
},
cwd: {
alias: 'd',
@@ -175,13 +175,22 @@ async function main(args: MainArgs): Promise<void> {
const raw = options._;
const flags = normalizeFlags(options);

if (flags['print-config']) {
if (typeof options['print-config'] === 'string') {
const loaded = await load(getSeed(flags), {
cwd: flags.cwd,
file: flags.config,
});
console.log(util.inspect(loaded, false, null, options.color));
return;

switch (options['print-config']) {
case 'json':
console.log(JSON.stringify(loaded));
return;

case 'text':
default:
console.log(util.inspect(loaded, false, null, options.color));
return;
}
}

const fromStdin = checkFromStdin(raw, flags);
3 changes: 2 additions & 1 deletion @commitlint/cli/src/types.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,8 @@ export interface CliFlags {
to?: string;
version?: boolean;
verbose?: boolean;
'print-config'?: boolean;
/** @type {'' | 'text' | 'json'} */
'print-config'?: string;
strict?: boolean;
_: (string | number)[];
$0: string;
16 changes: 16 additions & 0 deletions @commitlint/config-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [18.6.0](https://github.com/conventional-changelog/commitlint/compare/v18.5.1...v18.6.0) (2024-01-25)

**Note:** Version bump only for package @commitlint/config-angular





# [18.5.0](https://github.com/conventional-changelog/commitlint/compare/v18.4.4...v18.5.0) (2024-01-22)

**Note:** Version bump only for package @commitlint/config-angular





## [18.4.4](https://github.com/conventional-changelog/commitlint/compare/v18.4.3...v18.4.4) (2024-01-04)

**Note:** Version bump only for package @commitlint/config-angular
4 changes: 2 additions & 2 deletions @commitlint/config-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commitlint/config-angular",
"version": "18.4.4",
"version": "18.6.0",
"description": "Shareable commitlint config enforcing the angular commit convention",
"files": [
"index.js"
@@ -30,7 +30,7 @@
"node": ">=v18"
},
"devDependencies": {
"@commitlint/lint": "^18.4.4",
"@commitlint/lint": "^18.6.0",
"@commitlint/utils": "^18.4.4"
},
"dependencies": {
Loading