markdownlint-cli2 0.5.0 → 0.5.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/README.md +5 -4
- package/markdownlint-cli2.js +4 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ A container image [`davidanson/markdownlint-cli2`][docker-hub-markdownlint-cli2]
|
|
|
131
131
|
can also be used (e.g., as part of a CI pipeline):
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:0.5.
|
|
134
|
+
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
Notes:
|
|
@@ -148,14 +148,14 @@ Notes:
|
|
|
148
148
|
- A custom working directory can be specified with Docker's `-w` flag:
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
|
-
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:0.5.
|
|
151
|
+
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
To invoke the `markdownlint-cli2-config` or `markdownlint-cli2-fix` commands
|
|
155
155
|
instead, use Docker's `--entrypoint` flag:
|
|
156
156
|
|
|
157
157
|
```bash
|
|
158
|
-
docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:0.5.
|
|
158
|
+
docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
### Exit Codes
|
|
@@ -344,7 +344,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
|
|
|
344
344
|
|
|
345
345
|
```yaml
|
|
346
346
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
347
|
-
rev: v0.5.
|
|
347
|
+
rev: v0.5.1
|
|
348
348
|
hooks:
|
|
349
349
|
- id: markdownlint-cli2
|
|
350
350
|
```
|
|
@@ -378,6 +378,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
|
|
|
378
378
|
- 0.3.2 - Extensibility/Windows/consistency improvements
|
|
379
379
|
- 0.4.0 - New rules, async custom rules, explicit config, CJS (breaking)
|
|
380
380
|
- 0.5.0 - New rules, support modules (MJS) everywhere, include dotfiles
|
|
381
|
+
- 0.5.1 - Update dependencies
|
|
381
382
|
|
|
382
383
|
<!-- markdownlint-disable line-length -->
|
|
383
384
|
|
package/markdownlint-cli2.js
CHANGED
|
@@ -22,7 +22,7 @@ const resolveAndRequire = require("./resolve-and-require");
|
|
|
22
22
|
|
|
23
23
|
// Variables
|
|
24
24
|
const packageName = "markdownlint-cli2";
|
|
25
|
-
const packageVersion = "0.5.
|
|
25
|
+
const packageVersion = "0.5.1";
|
|
26
26
|
const libraryName = "markdownlint";
|
|
27
27
|
const libraryVersion = markdownlintLibrary.getVersion();
|
|
28
28
|
const dotOnlySubstitute = "*.{md,markdown}";
|
|
@@ -79,8 +79,9 @@ const importOrRequireResolve = async (dir, id) => {
|
|
|
79
79
|
try {
|
|
80
80
|
const fileUrlString =
|
|
81
81
|
pathToFileURL(path.resolve(dir, expandId)).toString();
|
|
82
|
-
// eslint-disable-next-line
|
|
83
|
-
|
|
82
|
+
// eslint-disable-next-line max-len
|
|
83
|
+
// eslint-disable-next-line no-inline-comments, node/no-unsupported-features/es-syntax
|
|
84
|
+
const module = await import(/* webpackIgnore: true */ fileUrlString);
|
|
84
85
|
return module.default;
|
|
85
86
|
} catch (error) {
|
|
86
87
|
errors.push(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdownlint-cli2",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.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",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "commonjs",
|
|
11
|
+
"main": "./markdownlint-cli2.js",
|
|
11
12
|
"exports": "./markdownlint-cli2.js",
|
|
12
13
|
"bin": {
|
|
13
14
|
"markdownlint-cli2": "markdownlint-cli2.js",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
],
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"globby": "13.1.2",
|
|
55
|
-
"markdownlint": "0.26.
|
|
56
|
+
"markdownlint": "0.26.2",
|
|
56
57
|
"markdownlint-cli2-formatter-default": "0.0.3",
|
|
57
58
|
"micromatch": "4.0.5",
|
|
58
59
|
"strip-json-comments": "5.0.0",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"c8": "7.12.0",
|
|
65
66
|
"cpy": "9.0.1",
|
|
66
67
|
"del": "7.0.0",
|
|
67
|
-
"eslint": "8.
|
|
68
|
+
"eslint": "8.21.0",
|
|
68
69
|
"eslint-plugin-node": "11.1.0",
|
|
69
70
|
"eslint-plugin-unicorn": "43.0.2",
|
|
70
71
|
"execa": "6.1.0",
|