diff --git a/markdownlint.js b/markdownlint.js index 6f9ec848e..a66da2c17 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -309,14 +309,13 @@ function lintAndPrint(stdin, files) { ...lintOptions, resultVersion: 3 }; - const markdownlintRuleHelpers = require('markdownlint/helpers'); for (const file of files) { fixOptions.files = [file]; const fixResult = markdownlint.sync(fixOptions); const fixes = fixResult[file].filter(error => error.fixInfo); if (fixes.length > 0) { const originalText = fs.readFileSync(file, fsOptions); - const fixedText = markdownlintRuleHelpers.applyFixes(originalText, fixes); + const fixedText = markdownlint.applyFixes(originalText, fixes); if (originalText !== fixedText) { fs.writeFileSync(file, fixedText, fsOptions); }