src/index.js
function getJscsrc () {
    var jscsrcPath = process.cwd() + '/.jscsrc';

    try {
        return JSON.parse(fs.readFileSync(jscsrcPath, 'utf8'));
    }
    catch (error) {
        throw new Error(`Expected to find JSCS configuration ${jscsrcPath}; saw error "${error.message}". Cannot run JSCS analysis.`, error);
    }
}
function getJscsrc () {
    var jscsrcPath = process.cwd() + '/.jscsrc';

    try {
        return JSON.parse(fs.readFileSync(jscsrcPath, 'utf8'));
    }
    catch (error) {
        throw new Error(`Expected to find JSCS configuration ${jscsrcPath}; saw error "${error.message}". Cannot run JSCS analysis.`, error);
    }
}
function getJscsrc ( ) { var jscsrcPath = process . cwd ( ) + '/.jscsrc' ; try { return JSON . parse ( fs . readFileSync ( jscsrcPath , 'utf8' ) ) ; } catch ( error ) { throw new Error ( ` ${ jscsrcPath } ${ error . message } ` , error ) ; } }
Get the object representation of the configuration in .jscsrc in the project
root.
Get the object representation of the configuration in . jscsrc in the project root .