code: function getPresetInfo () {
    const presetName = tryRequire(/elint-preset-/)[0]
  
    debug(`preset name: ${presetName}`)
  
    if (!presetName) {
      return null
    }
  
    const presetInfo = getInfoFromPackageLock(presetName) || getInfoFromNodeModules(presetName)
  
    debug('preset info: %o', presetInfo)
  
    // 数据不全
    if (!presetInfo || !presetInfo.name || !presetInfo.version || !presetInfo.registryUrl) {
      return null
    }
  
    return presetInfo
  }
docs: 获取 preset 信息
  
  @param {string} presetName preset name
  @returns {null|PresetInfo} 结果