From 77ea05e02085ac7f63526aee9bd3beffc0b609e9 Mon Sep 17 00:00:00 2001 From: David Anson Date: Mon, 2 Jan 2023 23:59:35 +0000 Subject: [PATCH] Remove markdownlint-rule-helpers dependency, reference via require("markdownlint/helpers") instead. --- markdownlint.js | 2 +- package-lock.json | 14 -------------- package.json | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/markdownlint.js b/markdownlint.js index 8de7a0b5a..bf3563a57 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -293,7 +293,7 @@ function lintAndPrint(stdin, files) { ...lintOptions, resultVersion: 3 }; - const markdownlintRuleHelpers = require('markdownlint-rule-helpers'); + const markdownlintRuleHelpers = require('markdownlint/helpers'); for (const file of files) { fixOptions.files = [file]; const fixResult = markdownlint.sync(fixOptions); diff --git a/package-lock.json b/package-lock.json index 0734e1d71..e8cbeceef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "js-yaml": "^4.1.0", "jsonc-parser": "~3.2.0", "markdownlint": "~0.27.0", - "markdownlint-rule-helpers": "~0.17.2", "minimatch": "~5.1.2", "run-con": "~1.2.11" }, @@ -4044,14 +4043,6 @@ "node": ">=14.18.0" } }, - "node_modules/markdownlint-rule-helpers": { - "version": "0.17.2", - "resolved": "https://registry.npmjs.org/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.17.2.tgz", - "integrity": "sha512-XaeoW2NYSlWxMCZM2B3H7YTG6nlaLfkEZWMBhr4hSPlq9MuY2sy83+Xr89jXOqZMZYjvi5nBCGoFh7hHoPKZmA==", - "engines": { - "node": ">=12" - } - }, "node_modules/matcher": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/matcher/-/matcher-5.0.0.tgz", @@ -10135,11 +10126,6 @@ "markdown-it": "13.0.1" } }, - "markdownlint-rule-helpers": { - "version": "0.17.2", - "resolved": "https://registry.npmjs.org/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.17.2.tgz", - "integrity": "sha512-XaeoW2NYSlWxMCZM2B3H7YTG6nlaLfkEZWMBhr4hSPlq9MuY2sy83+Xr89jXOqZMZYjvi5nBCGoFh7hHoPKZmA==" - }, "matcher": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/matcher/-/matcher-5.0.0.tgz", diff --git a/package.json b/package.json index 59364a2e7..3c82e5828 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "js-yaml": "^4.1.0", "jsonc-parser": "~3.2.0", "markdownlint": "~0.27.0", - "markdownlint-rule-helpers": "~0.17.2", "minimatch": "~5.1.2", "run-con": "~1.2.11" },