markdownlint-cli2 0.8.0 → 0.8.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 +4 -4
- package/markdownlint-cli2.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,7 +166,7 @@ A container image [`davidanson/markdownlint-cli2`][docker-hub-markdownlint-cli2]
|
|
|
166
166
|
can also be used (e.g., as part of a CI pipeline):
|
|
167
167
|
|
|
168
168
|
```bash
|
|
169
|
-
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.8.
|
|
169
|
+
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.8.1 "**/*.md" "#node_modules"
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
Notes:
|
|
@@ -183,7 +183,7 @@ Notes:
|
|
|
183
183
|
- A custom working directory can be specified with Docker's `-w` flag:
|
|
184
184
|
|
|
185
185
|
```bash
|
|
186
|
-
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.8.
|
|
186
|
+
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:v0.8.1 "**/*.md" "#node_modules"
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
> **Deprecated**
|
|
@@ -192,7 +192,7 @@ Notes:
|
|
|
192
192
|
> instead, use Docker's `--entrypoint` flag:
|
|
193
193
|
>
|
|
194
194
|
> ```bash
|
|
195
|
-
> docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:v0.8.
|
|
195
|
+
> docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:v0.8.1 "**/*.md" "#node_modules"
|
|
196
196
|
> ```
|
|
197
197
|
|
|
198
198
|
For convenience, the container image
|
|
@@ -401,7 +401,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
|
|
|
401
401
|
|
|
402
402
|
```yaml
|
|
403
403
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
404
|
-
rev: v0.8.
|
|
404
|
+
rev: v0.8.1
|
|
405
405
|
hooks:
|
|
406
406
|
- id: markdownlint-cli2
|
|
407
407
|
```
|
package/markdownlint-cli2.js
CHANGED
|
@@ -25,7 +25,7 @@ const resolveAndRequire = require("./resolve-and-require");
|
|
|
25
25
|
|
|
26
26
|
// Variables
|
|
27
27
|
const packageName = "markdownlint-cli2";
|
|
28
|
-
const packageVersion = "0.8.
|
|
28
|
+
const packageVersion = "0.8.1";
|
|
29
29
|
const libraryName = "markdownlint";
|
|
30
30
|
const libraryVersion = markdownlintLibrary.getVersion();
|
|
31
31
|
const dotOnlySubstitute = "*.{md,markdown}";
|
|
@@ -877,7 +877,10 @@ const main = async (params) => {
|
|
|
877
877
|
noGlobs,
|
|
878
878
|
noRequire
|
|
879
879
|
);
|
|
880
|
-
if (
|
|
880
|
+
if (
|
|
881
|
+
((globPatterns.length === 0) && !nonFileContents) ||
|
|
882
|
+
(configPath === null)
|
|
883
|
+
) {
|
|
881
884
|
showHelp(logMessage);
|
|
882
885
|
return 2;
|
|
883
886
|
}
|
package/package.json
CHANGED