@govbr-ds/markdownlint-config 4.6.0 → 5.0.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 +4 -4
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -9,12 +9,12 @@ Compartilhar os padrões de criação markdown entre os projetos do [GovBR-DS](h
|
|
|
9
9
|
1. Instale os seguintes pacotes:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
pnpm add -D @govbr-ds/markdownlint-config markdownlint-cli2 husky
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Como configurar
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
As regras ficam no pacote compartilhado e a execução usa o [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2), que suporta globs, ignorações e formatos de saída de forma consistente entre os projetos.
|
|
18
18
|
|
|
19
19
|
1. Crie um arquivo `.markdownlint.yml` na raiz do seu projeto e extenda a configuração:
|
|
20
20
|
|
|
@@ -41,11 +41,11 @@ Configurações para o [Markdownlint](https://github.com/DavidAnson/markdownlint
|
|
|
41
41
|
|
|
42
42
|
```json
|
|
43
43
|
"scripts": {
|
|
44
|
-
"lint:md": "
|
|
44
|
+
"lint:md": "markdownlint-cli2 '**/*.md' --fix",
|
|
45
45
|
},
|
|
46
46
|
"lint-staged": {
|
|
47
47
|
"*.md": [
|
|
48
|
-
"markdownlint
|
|
48
|
+
"markdownlint-cli2 --fix"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govbr-ds/markdownlint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Configuração compartilhada do markdownlint para projetos do GovBR-DS",
|
|
6
6
|
"keywords": [
|
|
@@ -18,11 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": "SERPRO (http://serpro.gov.br/)",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
21
24
|
"main": "src/markdownlint.yml",
|
|
22
25
|
"files": [
|
|
23
26
|
"src/markdownlint.yml"
|
|
24
27
|
],
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"markdownlint-cli": "0.
|
|
29
|
+
"markdownlint-cli": "0.49.1"
|
|
27
30
|
}
|
|
28
31
|
}
|