@commitlint/config-conventional
Advanced tools
Comparing version 18.6.2 to 19.0.0
@@ -110,3 +110,3 @@ import { RuleConfigCondition, RuleConfigSeverity, TargetCaseType } from '@commitlint/types'; | ||
}; | ||
export = _default; | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,27 +0,26 @@ | ||
"use strict"; | ||
const types_1 = require("@commitlint/types"); | ||
module.exports = { | ||
import { RuleConfigSeverity, } from '@commitlint/types'; | ||
export default { | ||
parserPreset: 'conventional-changelog-conventionalcommits', | ||
rules: { | ||
'body-leading-blank': [types_1.RuleConfigSeverity.Warning, 'always'], | ||
'body-max-line-length': [types_1.RuleConfigSeverity.Error, 'always', 100], | ||
'footer-leading-blank': [types_1.RuleConfigSeverity.Warning, 'always'], | ||
'body-leading-blank': [RuleConfigSeverity.Warning, 'always'], | ||
'body-max-line-length': [RuleConfigSeverity.Error, 'always', 100], | ||
'footer-leading-blank': [RuleConfigSeverity.Warning, 'always'], | ||
'footer-max-line-length': [ | ||
types_1.RuleConfigSeverity.Error, | ||
RuleConfigSeverity.Error, | ||
'always', | ||
100, | ||
], | ||
'header-max-length': [types_1.RuleConfigSeverity.Error, 'always', 100], | ||
'header-trim': [types_1.RuleConfigSeverity.Error, 'always'], | ||
'header-max-length': [RuleConfigSeverity.Error, 'always', 100], | ||
'header-trim': [RuleConfigSeverity.Error, 'always'], | ||
'subject-case': [ | ||
types_1.RuleConfigSeverity.Error, | ||
RuleConfigSeverity.Error, | ||
'never', | ||
['sentence-case', 'start-case', 'pascal-case', 'upper-case'], | ||
], | ||
'subject-empty': [types_1.RuleConfigSeverity.Error, 'never'], | ||
'subject-full-stop': [types_1.RuleConfigSeverity.Error, 'never', '.'], | ||
'type-case': [types_1.RuleConfigSeverity.Error, 'always', 'lower-case'], | ||
'type-empty': [types_1.RuleConfigSeverity.Error, 'never'], | ||
'subject-empty': [RuleConfigSeverity.Error, 'never'], | ||
'subject-full-stop': [RuleConfigSeverity.Error, 'never', '.'], | ||
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'], | ||
'type-empty': [RuleConfigSeverity.Error, 'never'], | ||
'type-enum': [ | ||
types_1.RuleConfigSeverity.Error, | ||
RuleConfigSeverity.Error, | ||
'always', | ||
@@ -28,0 +27,0 @@ [ |
{ | ||
"name": "@commitlint/config-conventional", | ||
"version": "18.6.2", | ||
"type": "module", | ||
"version": "19.0.0", | ||
"description": "Shareable commitlint config enforcing conventional commits", | ||
"main": "lib/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./wrapper.mjs", | ||
"require": "./lib/index.js" | ||
} | ||
}, | ||
"files": [ | ||
@@ -44,10 +38,10 @@ "lib/" | ||
"devDependencies": { | ||
"@commitlint/lint": "^18.6.1", | ||
"@commitlint/utils": "^18.6.1" | ||
"@commitlint/lint": "^19.0.0", | ||
"@commitlint/utils": "^19.0.0" | ||
}, | ||
"dependencies": { | ||
"@commitlint/types": "^18.6.1", | ||
"@commitlint/types": "^19.0.0", | ||
"conventional-changelog-conventionalcommits": "^7.0.2" | ||
}, | ||
"gitHead": "93fa15ee545ba2b0e3b6b83ed947bd143662a74c" | ||
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f" | ||
} |
@@ -1,5 +0,5 @@ | ||
> Lint your conventional commits | ||
# @commitlint/config-conventional | ||
Lint your conventional commits | ||
Shareable `commitlint` config enforcing [conventional commits](https://conventionalcommits.org/). | ||
@@ -12,3 +12,3 @@ Use with [@commitlint/cli](https://npm.im/@commitlint/cli) and [@commitlint/prompt-cli](https://npm.im/@commitlint/prompt-cli). | ||
npm install --save-dev @commitlint/config-conventional @commitlint/cli | ||
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js | ||
echo "export default {extends: ['@commitlint/config-conventional']};" > commitlint.config.js | ||
``` | ||
@@ -22,3 +22,3 @@ | ||
Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules. | ||
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules. | ||
@@ -25,0 +25,0 @@ #### type-enum |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
18426
243
+ Added@commitlint/types@19.5.0(transitive)
+ Added@types/conventional-commits-parser@5.0.0(transitive)
+ Added@types/node@22.5.4(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@commitlint/types@18.6.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updated@commitlint/types@^19.0.0