markdownlint-cli 0.32.1 → 0.32.2

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
@@ -37,8 +37,8 @@ markdownlint --help
37
37
  -q, --quiet do not write issues to STDOUT
38
38
  -r, --rules [file|directory|glob|package] include custom rule files (default: [])
39
39
  -s, --stdin read from STDIN (does not work with files)
40
- --enable [rules...] Enable certain rules, e.g. --enable MD013 MD041
41
- --disable [rules...] Disable certain rules, e.g. --disable MD013 MD041
40
+ --enable [rules...] Enable certain rules, e.g. --enable MD013 MD041 --
41
+ --disable [rules...] Disable certain rules, e.g. --disable MD013 MD041 --
42
42
  -h, --help display help for command
43
43
  ```
44
44
 
@@ -48,6 +48,9 @@ Or run using [Docker](https://www.docker.com) and [GitHub Packages](https://gith
48
48
  docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md"
49
49
  ```
50
50
 
51
+ > **Note**
52
+ > Because `--enable` and `--disable` are [variadic arguments that accept multiple values][commander-variadic], it is necessary to end the list by passing `--` before the `<files|directories|globs>` argument like so: `markdownlint --disable MD013 -- README.md`.
53
+
51
54
  ### Globbing
52
55
 
53
56
  `markdownlint-cli` supports advanced globbing patterns like `**/*.md` ([more information][globprimer]).
@@ -130,7 +133,7 @@ To run `markdownlint-cli` as part of a [pre-commit][pre-commit] workflow, add so
130
133
 
131
134
  ```yaml
132
135
  - repo: https://github.com/igorshubovych/markdownlint-cli
133
- rev: v0.32.1
136
+ rev: v0.32.2
134
137
  hooks:
135
138
  - id: markdownlint
136
139
  ```
@@ -149,6 +152,7 @@ MIT © Igor Shubovych
149
152
 
150
153
  [actions-badge]: https://github.com/igorshubovych/markdownlint-cli/workflows/CI/badge.svg?branch=master
151
154
  [actions-url]: https://github.com/igorshubovych/markdownlint-cli/actions?query=workflow%3ACI
155
+ [commander-variadic]: https://github.com/tj/commander.js#variadic-option
152
156
  [markdownlint]: https://github.com/DavidAnson/markdownlint
153
157
  [markdownlint-jsonc]: https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.jsonc
154
158
  [markdownlint-yaml]: https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
package/markdownlint.js CHANGED
@@ -192,8 +192,8 @@ program
192
192
  .option('-q, --quiet', 'do not write issues to STDOUT')
193
193
  .option('-r, --rules [file|directory|glob|package]', 'include custom rule files', concatArray, [])
194
194
  .option('-s, --stdin', 'read from STDIN (does not work with files)')
195
- .option('--enable [rules...]', 'Enable certain rules, e.g. --enable MD013 MD041')
196
- .option('--disable [rules...]', 'Disable certain rules, e.g. --disable MD013 MD041');
195
+ .option('--enable [rules...]', 'Enable certain rules, e.g. --enable MD013 MD041 --')
196
+ .option('--disable [rules...]', 'Disable certain rules, e.g. --disable MD013 MD041 --');
197
197
 
198
198
  program.parse(process.argv);
199
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint-cli",
3
- "version": "0.32.1",
3
+ "version": "0.32.2",
4
4
  "description": "MarkdownLint Command Line Interface",
5
5
  "main": "markdownlint.js",
6
6
  "bin": {
@@ -43,8 +43,8 @@
43
43
  "ignore": "~5.2.0",
44
44
  "js-yaml": "^4.1.0",
45
45
  "jsonc-parser": "~3.1.0",
46
- "markdownlint": "~0.26.1",
47
- "markdownlint-rule-helpers": "~0.17.1",
46
+ "markdownlint": "~0.26.2",
47
+ "markdownlint-rule-helpers": "~0.17.2",
48
48
  "minimatch": "~5.1.0",
49
49
  "run-con": "~1.2.11"
50
50
  },