@govbr-ds/commitlint-config 3.3.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Compartilhar os padrões de commit entre os projetos do [GovBR-DS](https://gitla
9
9
  1. Instale as seguintes dependências
10
10
 
11
11
  ```bash
12
- npm install --save-dev @govbr-ds/commitlint-config husky @commitlint/cz-commitlint@17.8.1
12
+ npm install --save-dev @govbr-ds/commitlint-config husky @commitlint/cz-commitlint
13
13
  ```
14
14
 
15
15
  ## Como configurar
@@ -17,7 +17,7 @@ Compartilhar os padrões de commit entre os projetos do [GovBR-DS](https://gitla
17
17
  1. Crie um arquivo `.commitlintrc.js` na raiz do seu projeto e e importe a configuração:
18
18
 
19
19
  ```javascript
20
- module.exports = {
20
+ export default {
21
21
  extends: ['@govbr-ds/commitlint-config'],
22
22
  }
23
23
  ```
@@ -38,7 +38,7 @@ Compartilhar os padrões de commit entre os projetos do [GovBR-DS](https://gitla
38
38
  1. Conforme a documentação do [Husky](https://github.com/typicode/husky) inclua o hook `commit-msg` com o código abaixo:
39
39
 
40
40
  ```bash
41
- npx --no -- commitlint --edit $1
41
+ npx commitlint --edit ${1}
42
42
  ```
43
43
 
44
44
  E configure o `package.json` com o seguinte script:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govbr-ds/commitlint-config",
3
- "version": "3.3.0",
3
+ "version": "4.1.0",
4
4
  "private": false,
5
5
  "description": "Padrão de commits para projetos do Padrão Digital de Governo",
6
6
  "keywords": [
@@ -13,28 +13,22 @@
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git@gitlab.com:govbr-ds/tools/govbr-ds-config-tools.git"
16
+ "url": "git@gitlab.com:govbr-ds/tools/govbr-ds-config-tools.git",
17
+ "directory": "packages/commitlint"
17
18
  },
18
19
  "license": "MIT",
19
20
  "author": "SERPRO (http://serpro.gov.br/)",
20
- "main": ".commitlintrc.js",
21
+ "type": "module",
22
+ "main": "src/.commitlintrc.js",
21
23
  "files": [
22
- ".commitlintrc.js"
24
+ "src/.commitlintrc.js"
23
25
  ],
24
- "scripts": {
25
- "commit": "git-cz"
26
- },
27
- "config": {
28
- "commitizen": {
29
- "path": "@commitlint/cz-commitlint"
30
- }
31
- },
32
26
  "dependencies": {
33
- "@commitlint/cli": "^17.8.1",
34
- "@commitlint/config-conventional": "^17.8.1",
35
- "@commitlint/cz-commitlint": "^17.8.1",
36
- "@commitlint/format": "^17.8.1",
37
- "@commitlint/lint": "^17.8.1",
27
+ "@commitlint/cli": "^19.3.0",
28
+ "@commitlint/config-conventional": "^19.2.2",
29
+ "@commitlint/cz-commitlint": "^19.2.0",
30
+ "@commitlint/format": "^19.3.0",
31
+ "@commitlint/lint": "^19.2.2",
38
32
  "commitizen": "^4.3.0"
39
33
  }
40
34
  }
@@ -1,4 +1,4 @@
1
- module.exports = {
1
+ export default {
2
2
  defaultIgnores: true,
3
3
  extends: ['@commitlint/config-conventional'],
4
4
  formatter: '@commitlint/format',
@@ -103,20 +103,20 @@ module.exports = {
103
103
  rules: {
104
104
  'body-full-stop': [0, 'always', '.'],
105
105
  'body-leading-blank': [2, 'always'],
106
- 'body-max-length': [2, 'always', Infinity],
107
- 'body-max-line-length': [2, 'always', Infinity],
106
+ 'body-max-length': [0, 'always', Infinity],
107
+ 'body-max-line-length': [0, 'always', Infinity],
108
108
  'footer-leading-blank': [2, 'always'],
109
- 'footer-max-length': [2, 'always', Infinity],
110
- 'footer-max-line-length': [2, 'always', Infinity],
109
+ 'footer-max-length': [0, 'always', Infinity],
110
+ 'footer-max-line-length': [0, 'always', Infinity],
111
111
  'header-case': [0, 'always', 'lower-case'],
112
112
  'header-full-stop': [0, 'always', '.'],
113
- 'header-max-length': [2, 'always', 100],
113
+ 'header-max-length': [0, 'always', Infinity],
114
114
  'header-min-length': [2, 'always', 20],
115
115
  'scope-case': [0, 'always', 'lower-case'],
116
- 'scope-max-length': [2, 'always', Infinity],
116
+ 'scope-max-length': [0, 'always', Infinity],
117
117
  'subject-case': [0, 'always', 'lower-case'],
118
118
  'subject-full-stop': [0, 'always', '.'],
119
- 'subject-max-length': [2, 'always', Infinity],
119
+ 'subject-max-length': [0, 'always', Infinity],
120
120
  'type-case': [0, 'always', 'lower-case'],
121
121
  'type-enum': [
122
122
  2,