index.js
function (source, fileExtension, globalOptions, beautify) {
  var path = rcFile.for(this.resourcePath)
    , options = globalOptions || {};

  if (globalOptions === null && typeof path === "string") {
    this.addDependency(path);
    options = JSON.parse(stripJsonComments(fs.readFileSync(path, "utf8")));
  }

  return beautify(source, getOptionsForExtension(options, fileExtension));
}
function (source, fileExtension, globalOptions, beautify) {
  var path = rcFile.for(this.resourcePath)
    , options = globalOptions || {};

  if (globalOptions === null && typeof path === "string") {
    this.addDependency(path);
    options = JSON.parse(stripJsonComments(fs.readFileSync(path, "utf8")));
  }

  return beautify(source, getOptionsForExtension(options, fileExtension));
}
function ( source , fileExtension , globalOptions , beautify ) { var path = rcFile . for ( this . resourcePath ) , options = globalOptions || { } ; if ( globalOptions === null && typeof path === "string" ) { this . addDependency ( path ) ; options = JSON . parse ( stripJsonComments ( fs . readFileSync ( path , "utf8" ) ) ) ; } return beautify ( source , getOptionsForExtension ( options , fileExtension ) ) ; }
Method parses file synchronously
@param  {String} source        - file's content.
@param  {String} fileExtension - file's extension.
@param  {Object} globalOptions - configuration from weback file.
@return {String}               - parsed content of file.
Method parses file synchronously