src/index.js
function getJshintrc () {
    var jshintrcPath = process.cwd() + '/.jshintrc';

    try {
        return JSON.parse(fs.readFileSync(jshintrcPath, 'utf8'));
    }
    catch (error) {
        console.warn(`Expected to find JSHint configuration ${jshintrcPath}. Using default JSHint configuration`);
        return undefined;
    }
}
function getJshintrc () {
    var jshintrcPath = process.cwd() + '/.jshintrc';

    try {
        return JSON.parse(fs.readFileSync(jshintrcPath, 'utf8'));
    }
    catch (error) {
        console.warn(`Expected to find JSHint configuration ${jshintrcPath}. Using default JSHint configuration`);
        return undefined;
    }
}
function getJshintrc ( ) { var jshintrcPath = process . cwd ( ) + '/.jshintrc' ; try { return JSON . parse ( fs . readFileSync ( jshintrcPath , 'utf8' ) ) ; } catch ( error ) { console . warn ( ` ${ jshintrcPath } ` ) ; return undefined ; } }
Gets the object representation of the configuration in .jshintrc in the
project root.
Gets the object representation of the configuration in . jshintrc in the project root .