lib/run.js
function requireJslint(jslintFileName) {
    /*jslint stupid: true */// JSLint doesn't like "*Sync" functions, but in this require-like function async would be overkill
    var jslintCode = bufferToScript(
        fs.readFileSync(
            path.join(__dirname, jslintFileName)
        )
    );
    /*jslint stupid: false */

    var sandbox = {};
    vm.runInNewContext(jslintCode, sandbox, jslintFileName);
    return sandbox.JSLINT;
}
function requireJslint(jslintFileName) {
    /*jslint stupid: true */// JSLint doesn't like "*Sync" functions, but in this require-like function async would be overkill
    var jslintCode = bufferToScript(
        fs.readFileSync(
            path.join(__dirname, jslintFileName)
        )
    );
    /*jslint stupid: false */

    var sandbox = {};
    vm.runInNewContext(jslintCode, sandbox, jslintFileName);
    return sandbox.JSLINT;
}
function requireJslint ( jslintFileName ) { /*jslint stupid: true */ // JSLint doesn't like "*Sync" functions, but in this require-like function async would be overkill var jslintCode = bufferToScript ( fs . readFileSync ( path . join ( __dirname , jslintFileName ) ) ) ; /*jslint stupid: false */ var sandbox = { } ; vm . runInNewContext ( jslintCode , sandbox , jslintFileName ) ; return sandbox . JSLINT ; }
Return JSLINT loaded from the specified file. File name is assumed to be relative to this script's directory.
Return JSLINT loaded from the specified file . File name is assumed to be relative to this script s directory .