@uphold/commitlint-config
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@uphold/commitlint-config", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Shareable commitlint config enforcing Uphold's commit conventions", | ||
@@ -5,0 +5,0 @@ "author": "Uphold", |
@@ -18,3 +18,2 @@ # commitlint-config-uphold | ||
1. Header must not end with a full-stop. | ||
1. Body must not exceed 72 characters per line. | ||
1. Body can make use of all verb tenses. | ||
@@ -21,0 +20,0 @@ |
@@ -11,3 +11,2 @@ 'use strict'; | ||
rules: { | ||
'body-max-line-length': [2, 'always', 72], | ||
'subject-case': [2, 'always', 'sentence-case'], | ||
@@ -14,0 +13,0 @@ 'subject-empty': [2, 'never'], |
@@ -97,15 +97,2 @@ 'use strict'; | ||
it('should fail if a line in body exceeds 72 chars', async () => { | ||
const message = `Add new environment Mars | ||
This new environment was added because other development environments were congested. | ||
`; | ||
const { errors, warnings, valid } = await lint(message, rules, options); | ||
expect(valid).toBe(false); | ||
expect(errors).toEqual([expect.objectContaining({ name: 'body-max-line-length' })]); | ||
expect(warnings).toHaveLength(0); | ||
}); | ||
describe('verb tense test cases', () => { | ||
@@ -112,0 +99,0 @@ [ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
177430
8896
60