You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@dwp/commitlint-config-base

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dwp/commitlint-config-base - npm Package Compare versions

Comparing version

to
4.0.0

51

CHANGELOG.md

@@ -1,5 +0,54 @@

# Change Log
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [4.0.0](https://github.com/dwp/commitlint-config-base/compare/2.0.0...4.0.0) (2022-10-31)
### ⚠ BREAKING CHANGES
* prevent committing of messages which can skip pipelines
* **dependencies:** applies major bumps on commitlint/cli etc so may change functionality
### Features
* prevent committing of messages which can skip pipelines ([accd797](https://github.com/dwp/commitlint-config-base/commit/accd7974bbc99cb7ca73b2fa1bf14bd24f55ead8))
### Bug Fixes
* **ci:** renovate configuration ([f092972](https://github.com/dwp/commitlint-config-base/commit/f0929726e0530eff4a734a56227992cbeb38884b))
* **dependencies:** update major dependency updates (major) ([2d4eab3](https://github.com/dwp/commitlint-config-base/commit/2d4eab3b4f7d05fa866e9c41394ac4b9ebe48af6))
## [3.0.0](https://github.com/dwp/commitlint-config-base/compare/2.0.0...3.0.0) (2022-09-21)
### ⚠ BREAKING CHANGES
* **dependencies:** applies major bumps on commitlint/cli etc so may change functionality
### Bug Fixes
* **ci:** renovate configuration ([f092972](https://github.com/dwp/commitlint-config-base/commit/f0929726e0530eff4a734a56227992cbeb38884b))
* **dependencies:** update major dependency updates (major) ([2d4eab3](https://github.com/dwp/commitlint-config-base/commit/2d4eab3b4f7d05fa866e9c41394ac4b9ebe48af6))
## [2.0.0](https://github.com/dwp/commitlint-config-base/compare/1.2.0...2.0.0) (2022-05-23)
### ⚠ BREAKING CHANGES
* Moving away from our previous ruleset will likely
affect endusers in some way.
### Bug Fixes
* **ci:** use correct renovate config syntax ([47926b1](https://github.com/dwp/commitlint-config-base/commit/47926b1e4b10464e2d4a8641ac74ebc17a04f154))
* use conventional-commits config ([83420ca](https://github.com/dwp/commitlint-config-base/commit/83420cac24744804376816b36ca835d08e4d4311)), closes [#1](https://github.com/dwp/commitlint-config-base/issues/1)
<a name="1.2.0"></a>

@@ -6,0 +55,0 @@ # 1.2.0 (2021-03-22)

27

package.json
{
"name": "@dwp/commitlint-config-base",
"version": "1.2.0",
"version": "4.0.0",
"author": "Adam Moss",

@@ -28,4 +28,7 @@ "license": "ISC",

"compliance:commits": "commitlint --from=main --to=HEAD",
"compliance:commits:edit": "commitlint --edit",
"compliance:lint": "eslint --ignore-path .gitignore .",
"lint-staged": "lint-staged",
"pipeline": "npm run compliance-tests && npm run security-tests && npm run tests",
"prepare": "husky install",
"security-tests": "npm run security:outdated && npm run security:audit",

@@ -40,14 +43,20 @@ "security:audit": "npm audit || true",

"devDependencies": {
"@commitlint/cli": "12.0.1",
"@dwp/eslint-config-base": "5.0.1",
"@commitlint/cli": "17.1.2",
"@commitlint/lint": "17.1.0",
"@commitlint/load": "17.1.2",
"@dwp/eslint-config-base": "6.0.0",
"@dwp/eslint-config-jasmine": "1.0.0",
"@dwp/nyc-config-base": "1.0.0",
"eslint": "7.22.0",
"husky": "4.3.8",
"jasmine": "3.7.0",
"jasmine-spec-reporter": "6.0.0",
"lint-staged": "10.5.4",
"eslint": "8.26.0",
"husky": "8.0.1",
"jasmine": "4.5.0",
"jasmine-spec-reporter": "7.0.0",
"lint-staged": "13.0.3",
"nyc": "15.1.0",
"snyk": "1.503.0"
"snyk": "1.1044.0"
},
"dependencies": {
"@commitlint/config-conventional": "17.1.0",
"conventional-changelog-conventionalcommits": "5.0.0"
}
}
# @dwp/commitlint-config-base
Shareable [`commitlint`](https://marionebl.github.io/commitlint/#) config enforcing our commit convention. Originally based upon the [AngularJS Commit Message Guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit) and derived from [@commitlint/config-angular](https://www.npmjs.com/package/@commitlint/config-angular).
Shareable [`commitlint`](https://marionebl.github.io/commitlint/#) config enforcing our commit convention.
Originally based upon the [Conventional Commit Message Guidelines](https://www.conventionalcommits.org/en/v1.0.0/#summary)
and derived from [@commitlint/config-conventional](https://www.npmjs.com/package/@commitlint/config-conventional).
In addition to the above guidelines, it will prevent committing of messages which could skip CI pipelines.
Use with [@commitlint/cli](https://npmjs.com/package/@commitlint/cli) and [@commitlint/prompt-cli](https://npmjs.com/package/@commitlint/prompt-cli).

@@ -5,0 +10,0 @@

module.exports = {
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [1, 'always', 72],
'scope-case': [2, 'always', 'lowerCase'],
'signed-off-by': [1, 'always', 'Signed-off-by:'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lowerCase'],
'type-empty': [2, 'never'],
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']],
extends: [
'@commitlint/config-conventional',
],
parserPreset: {
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?!?: ((?!\[skip ci\])(?!\[ci skip\]).)*$/,
},
},
};