code: function getLatticePrefs(readPkgUpOpts) {
    var _readPkg = (0, _readPkgUp.sync)(readPkgUpOpts),
        pkg = _readPkg.pkg;
  
    var options = {
      ModuleParser: {
        extensions: ['.js', '.jsx', '.ts', '.tsx'],
        failOnError: false
      }
    };
  
    if (pkg.lattice) {
      (0, _lodash.merge)(options, pkg.lattice || {});
    }
  
    return options;
  }
docs: It may be necessary to read GraphQL Lattice preferences from the nearest
  `package.json` object to the excuting code. `getLatticePrefs()` does this
  and merges any subsequently found options in said file on top of the
  default values specified here in this file.
  
  @method utils~⌾⠀getLatticePrefs
  @since 2.13.0
  
  @return {Object} an object containing at least the defaults plus any other
  values specified in `package.json`