markdownlint-cli 0.47.0 → 0.49.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 CHANGED
@@ -142,7 +142,7 @@ To run `markdownlint-cli` as part of a [pre-commit][pre-commit] workflow, add so
142
142
 
143
143
  ```yaml
144
144
  - repo: https://github.com/igorshubovych/markdownlint-cli
145
- rev: v0.47.0
145
+ rev: v0.49.0
146
146
  hooks:
147
147
  - id: markdownlint
148
148
  ```
package/markdownlint.js CHANGED
@@ -16,7 +16,7 @@ import jsonpointer from 'jsonpointer';
16
16
  const require = Module.createRequire(import.meta.url);
17
17
  const options = program.opts();
18
18
  // The following two values are copied from package.json (and validated by tests)
19
- const version = '0.47.0';
19
+ const version = '0.49.0';
20
20
  const description = 'MarkdownLint Command Line Interface';
21
21
 
22
22
  function markdownItFactory() {
@@ -78,7 +78,7 @@ function readConfiguration(userConfigFile) {
78
78
  // However I have to do it to overwrite configuration from .markdownlint.{jsonc,json,yaml,yml}.
79
79
  if (userConfigFile) {
80
80
  try {
81
- const jsConfigFile = /\.c?js$/i.test(userConfigFile);
81
+ const jsConfigFile = /\.c?js$/iv.test(userConfigFile);
82
82
  const userConfig = jsConfigFile ? require(path.resolve(processCwd, userConfigFile)) : readConfig(userConfigFile, configParsers);
83
83
  config = require('deep-extend')(config, userConfig);
84
84
  } catch (error) {
@@ -212,7 +212,7 @@ program
212
212
  .option('-c, --config <configFile>', 'configuration file (JSON, JSONC, JS, YAML, or TOML)')
213
213
  .option('--configPointer <pointer>', 'JSON Pointer to object within configuration file', '')
214
214
  .option('-d, --dot', 'include files/folders with a dot (for example `.github`)')
215
- .option('-f, --fix', 'fix basic errors (does not work with STDIN)')
215
+ .option('-f, --fix', 'fix basic issues (does not work with STDIN)')
216
216
  .option('-i, --ignore <file|directory|glob>', 'file(s) to ignore/exclude', concatArray, [])
217
217
  .option('-j, --json', 'write issues in json format')
218
218
  .option('-o, --output <outputFile>', 'write issues to file (no console)')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint-cli",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "description": "MarkdownLint Command Line Interface",
5
5
  "type": "module",
6
6
  "main": "markdownlint.js",
@@ -8,7 +8,7 @@
8
8
  "markdownlint": "markdownlint.js"
9
9
  },
10
10
  "engines": {
11
- "node": ">=20"
11
+ "node": ">=22"
12
12
  },
13
13
  "scripts": {
14
14
  "invalid": "node ./markdownlint.js --config test/test-config.json -- test/incorrect.md",
@@ -38,24 +38,24 @@
38
38
  },
39
39
  "homepage": "https://github.com/igorshubovych/markdownlint-cli#readme",
40
40
  "dependencies": {
41
- "commander": "~14.0.2",
41
+ "commander": "~15.0.0",
42
42
  "deep-extend": "~0.6.0",
43
43
  "ignore": "~7.0.5",
44
- "js-yaml": "~4.1.1",
44
+ "js-yaml": "~4.2.0",
45
45
  "jsonc-parser": "~3.3.1",
46
46
  "jsonpointer": "~5.0.1",
47
- "markdownlint": "~0.40.0",
48
- "markdown-it": "~14.1.0",
49
- "minimatch": "~10.1.1",
47
+ "markdownlint": "~0.41.0",
48
+ "markdown-it": "~14.2.0",
49
+ "minimatch": "~10.2.5",
50
50
  "run-con": "~1.3.2",
51
- "smol-toml": "~1.5.2",
52
- "tinyglobby": "~0.2.15"
51
+ "smol-toml": "~1.6.1",
52
+ "tinyglobby": "~0.2.17"
53
53
  },
54
54
  "devDependencies": {
55
- "ava": "^6.4.1",
55
+ "ava": "^8.0.1",
56
56
  "markdownlint-cli-local-test-rule": "./test/custom-rules/markdownlint-cli-local-test-rule",
57
- "nano-spawn": "^2.0.0",
58
- "xo": "^1.2.3"
57
+ "nano-spawn": "^2.1.0",
58
+ "xo": "^2.0.2"
59
59
  },
60
60
  "xo": {
61
61
  "prettier": true,