File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -309,14 +309,13 @@ function lintAndPrint(stdin, files) {
309
309
...lintOptions ,
310
310
resultVersion : 3
311
311
} ;
312
- const markdownlintRuleHelpers = require ( 'markdownlint/helpers' ) ;
313
312
for ( const file of files ) {
314
313
fixOptions . files = [ file ] ;
315
314
const fixResult = markdownlint . sync ( fixOptions ) ;
316
315
const fixes = fixResult [ file ] . filter ( error => error . fixInfo ) ;
317
316
if ( fixes . length > 0 ) {
318
317
const originalText = fs . readFileSync ( file , fsOptions ) ;
319
- const fixedText = markdownlintRuleHelpers . applyFixes ( originalText , fixes ) ;
318
+ const fixedText = markdownlint . applyFixes ( originalText , fixes ) ;
320
319
if ( originalText !== fixedText ) {
321
320
fs . writeFileSync ( file , fixedText , fsOptions ) ;
322
321
}
You can’t perform that action at this time.
0 commit comments