Skip to content

Commit

Permalink
Update to invoke get-stdin as an ESM import.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Feb 1, 2022
1 parent aca74ca commit c327fb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions markdownlint.js
Expand Up @@ -332,8 +332,10 @@ try {
if ((files.length > 0) && !options.stdin) {
lintAndPrint(null, diff);
} else if ((files.length === 0) && options.stdin && !options.fix) {
const getStdin = require('get-stdin');
getStdin().then(lintAndPrint);
// eslint-disable-next-line node/no-unsupported-features/es-syntax
import('get-stdin')
.then(module => module.default())
.then(lintAndPrint);
} else {
program.help();
}
Expand Down

0 comments on commit c327fb5

Please sign in to comment.