markdownlint-cli2 0.19.0 → 0.19.1
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/CHANGELOG.md +5 -0
- package/README.md +3 -3
- package/markdownlint-cli2.mjs +6 -2
- package/package.json +4 -4
- package/schema/markdownlint-cli2-config-schema.json +15 -15
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ A container image [`davidanson/markdownlint-cli2`][docker-hub-markdownlint-cli2]
|
|
|
150
150
|
can also be used (e.g., as part of a CI pipeline):
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
|
-
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.19.
|
|
153
|
+
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.19.1 "**/*.md" "#node_modules"
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Notes:
|
|
@@ -167,7 +167,7 @@ Notes:
|
|
|
167
167
|
- A custom working directory can be specified with Docker's `-w` flag:
|
|
168
168
|
|
|
169
169
|
```bash
|
|
170
|
-
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.19.
|
|
170
|
+
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.19.1 "**/*.md" "#node_modules"
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
For convenience, the container image
|
|
@@ -452,7 +452,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
|
|
|
452
452
|
|
|
453
453
|
```yaml
|
|
454
454
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
455
|
-
rev: v0.19.
|
|
455
|
+
rev: v0.19.1
|
|
456
456
|
hooks:
|
|
457
457
|
- id: markdownlint-cli2
|
|
458
458
|
```
|
package/markdownlint-cli2.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import yamlParse from "./parsers/yaml-parse.mjs";
|
|
|
21
21
|
|
|
22
22
|
// Variables
|
|
23
23
|
const packageName = "markdownlint-cli2";
|
|
24
|
-
const packageVersion = "0.19.
|
|
24
|
+
const packageVersion = "0.19.1";
|
|
25
25
|
const libraryName = "markdownlint";
|
|
26
26
|
const libraryVersion = getVersion();
|
|
27
27
|
const bannerMessage = `${packageName} v${packageVersion} (${libraryName} v${libraryVersion})`;
|
|
@@ -1067,7 +1067,11 @@ export const main = async (/** @type {Parameters} */ params) => {
|
|
|
1067
1067
|
logMessage(`Summary: ${results.length} error(s)`);
|
|
1068
1068
|
}
|
|
1069
1069
|
if (formattingContext.formatting) {
|
|
1070
|
-
|
|
1070
|
+
const { pipeline } = await import("node:stream/promises");
|
|
1071
|
+
await pipeline(
|
|
1072
|
+
String(formattingContext.formatted),
|
|
1073
|
+
process.stdout
|
|
1074
|
+
);
|
|
1071
1075
|
} else {
|
|
1072
1076
|
const outputFormatters =
|
|
1073
1077
|
(optionsOverride && optionsOverride.outputFormatters) ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdownlint-cli2",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the `markdownlint` library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "David Anson",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@eslint/js": "9.39.1",
|
|
86
86
|
"@playwright/test": "1.56.1",
|
|
87
|
-
"@stylistic/eslint-plugin": "5.
|
|
87
|
+
"@stylistic/eslint-plugin": "5.6.1",
|
|
88
88
|
"ajv": "8.17.1",
|
|
89
89
|
"ava": "6.4.1",
|
|
90
90
|
"c8": "10.1.3",
|
|
@@ -92,9 +92,10 @@
|
|
|
92
92
|
"cpy": "12.1.0",
|
|
93
93
|
"cpy-cli": "6.0.0",
|
|
94
94
|
"eslint": "9.39.1",
|
|
95
|
-
"eslint-plugin-jsdoc": "61.
|
|
95
|
+
"eslint-plugin-jsdoc": "61.4.0",
|
|
96
96
|
"eslint-plugin-n": "17.23.1",
|
|
97
97
|
"eslint-plugin-unicorn": "62.0.0",
|
|
98
|
+
"execa": "9.6.0",
|
|
98
99
|
"markdown-it-emoji": "3.0.0",
|
|
99
100
|
"markdown-it-for-inline": "2.0.1",
|
|
100
101
|
"markdownlint-cli2-formatter-codequality": "0.0.7",
|
|
@@ -105,7 +106,6 @@
|
|
|
105
106
|
"markdownlint-cli2-formatter-summarize": "0.0.8",
|
|
106
107
|
"markdownlint-cli2-formatter-template": "0.0.4",
|
|
107
108
|
"markdownlint-rule-extended-ascii": "0.2.1",
|
|
108
|
-
"nano-spawn": "2.0.0",
|
|
109
109
|
"npm-run-all": "4.1.5",
|
|
110
110
|
"terminal-link": "5.0.0"
|
|
111
111
|
},
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.19.
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.19.1/schema/markdownlint-cli2-config-schema.json",
|
|
4
4
|
"title": "markdownlint-cli2 configuration schema",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
8
8
|
"description": "JSON Schema URI (expected by some editors)",
|
|
9
9
|
"type": "string",
|
|
10
|
-
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.19.
|
|
10
|
+
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.19.1/schema/markdownlint-cli2-config-schema.json"
|
|
11
11
|
},
|
|
12
12
|
"config": {
|
|
13
13
|
"description": "markdownlint configuration schema : https://github.com/DavidAnson/markdownlint/blob/v0.39.0/schema/.markdownlint.jsonc",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"default": {}
|
|
16
16
|
},
|
|
17
17
|
"customRules": {
|
|
18
|
-
"description": "Module names or paths of custom rules to load and use when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
18
|
+
"description": "Module names or paths of custom rules to load and use when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
19
19
|
"type": "array",
|
|
20
20
|
"default": [],
|
|
21
21
|
"items": {
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"fix": {
|
|
28
|
-
"description": "Whether to enable fixing of linting errors reported by rules that emit fix information : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
28
|
+
"description": "Whether to enable fixing of linting errors reported by rules that emit fix information : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
29
29
|
"type": "boolean",
|
|
30
30
|
"default": false
|
|
31
31
|
},
|
|
32
32
|
"frontMatter": {
|
|
33
|
-
"description": "Regular expression used to match and ignore any front matter at the beginning of a document : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
33
|
+
"description": "Regular expression used to match and ignore any front matter at the beginning of a document : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
34
34
|
"type": "string",
|
|
35
35
|
"minLength": 1,
|
|
36
36
|
"default": ""
|
|
37
37
|
},
|
|
38
38
|
"gitignore": {
|
|
39
|
-
"description": "Whether to ignore files referenced by .gitignore (or glob expression) (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
39
|
+
"description": "Whether to ignore files referenced by .gitignore (or glob expression) (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
40
40
|
"type": [
|
|
41
41
|
"boolean",
|
|
42
42
|
"string"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"default": false
|
|
45
45
|
},
|
|
46
46
|
"globs": {
|
|
47
|
-
"description": "Glob expressions to include when linting (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
47
|
+
"description": "Glob expressions to include when linting (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
48
48
|
"type": "array",
|
|
49
49
|
"default": [],
|
|
50
50
|
"items": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"ignores": {
|
|
57
|
-
"description": "Glob expressions to ignore when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
57
|
+
"description": "Glob expressions to ignore when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
58
58
|
"type": "array",
|
|
59
59
|
"default": [],
|
|
60
60
|
"items": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"markdownItPlugins": {
|
|
67
|
-
"description": "markdown-it plugins to load and use when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
67
|
+
"description": "markdown-it plugins to load and use when linting : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
68
68
|
"type": "array",
|
|
69
69
|
"default": [],
|
|
70
70
|
"items": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"modulePaths": {
|
|
87
|
-
"description": "Additional paths to resolve module locations from : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
87
|
+
"description": "Additional paths to resolve module locations from : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
88
88
|
"type": "array",
|
|
89
89
|
"default": [],
|
|
90
90
|
"items": {
|
|
@@ -94,22 +94,22 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"noBanner": {
|
|
97
|
-
"description": "Whether to disable the display of the banner message and version numbers on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
97
|
+
"description": "Whether to disable the display of the banner message and version numbers on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
98
98
|
"type": "boolean",
|
|
99
99
|
"default": false
|
|
100
100
|
},
|
|
101
101
|
"noInlineConfig": {
|
|
102
|
-
"description": "Whether to disable support of HTML comments within Markdown content : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
102
|
+
"description": "Whether to disable support of HTML comments within Markdown content : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
103
103
|
"type": "boolean",
|
|
104
104
|
"default": false
|
|
105
105
|
},
|
|
106
106
|
"noProgress": {
|
|
107
|
-
"description": "Whether to disable the display of progress on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
107
|
+
"description": "Whether to disable the display of progress on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
108
108
|
"type": "boolean",
|
|
109
109
|
"default": false
|
|
110
110
|
},
|
|
111
111
|
"outputFormatters": {
|
|
112
|
-
"description": "Output formatters to load and use to customize markdownlint-cli2 output (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
112
|
+
"description": "Output formatters to load and use to customize markdownlint-cli2 output (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
113
113
|
"type": "array",
|
|
114
114
|
"default": [],
|
|
115
115
|
"items": {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"showFound": {
|
|
132
|
-
"description": "Whether to show the list of found files on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.
|
|
132
|
+
"description": "Whether to show the list of found files on stdout (only valid at the root) : https://github.com/DavidAnson/markdownlint-cli2/blob/v0.19.1/README.md#markdownlint-cli2jsonc",
|
|
133
133
|
"type": "boolean",
|
|
134
134
|
"default": false
|
|
135
135
|
}
|