code: function versionFromState(state) {
    // eslint-disable-next-line global-require
    return require(pkgUp.sync(state.file.opts.filename)).version;
  }
docs: Uses pkgUp to find the appropriate package.json for the specified babel state
  object
  @param {Object} state
  @private
  @returns {string}