Makefile.js
function lintMarkdown(files) {
    const config = yaml.safeLoad(fs.readFileSync(path.join(__dirname, "./.markdownlint.yml"), "utf8")),
        result = markdownlint.sync({
            files,
            config,
            resultVersion: 1
        }),
        resultString = result.toString(),
        returnCode = resultString ? 1 : 0;

    if (resultString) {
        console.error(resultString);
    }
    return { code: returnCode };
}
function lintMarkdown(files) {
    const config = yaml.safeLoad(fs.readFileSync(path.join(__dirname, "./.markdownlint.yml"), "utf8")),
        result = markdownlint.sync({
            files,
            config,
            resultVersion: 1
        }),
        resultString = result.toString(),
        returnCode = resultString ? 1 : 0;

    if (resultString) {
        console.error(resultString);
    }
    return { code: returnCode };
}
function lintMarkdown ( files ) { const config = yaml . safeLoad ( fs . readFileSync ( path . join ( __dirname , "./.markdownlint.yml" ) , "utf8" ) ) , result = markdownlint . sync ( { files , config , resultVersion : 1 } ) , resultString = result . toString ( ) , returnCode = resultString ? 1 : 0 ; if ( resultString ) { console . error ( resultString ) ; } return { code : returnCode } ; }
Lints Markdown files.
@param {Array} files Array of file names to lint.
@returns {Object} exec-style exit code object.
@private
Lints Markdown files .