code: function getConfigFiles () {
    const baseDir = getBaseDir()
    const configFiles = findConfigFiles(baseDir)
    const result = []
  
    configFiles.forEach(configFile => {
      const fileParsedObj = path.parse(configFile)
      const newFileName = `${fileParsedObj.name}${fileParsedObj.ext}`
      const newFilePath = configFile
      const oldFileName = `${fileParsedObj.name}.old${fileParsedObj.ext}`
      const oldFilePath = path.join(baseDir, oldFileName)
  
      if (!fs.existsSync(oldFilePath)) {
        return
      }
  
      const newFileContent = fs.readFileSync(newFilePath, { encoding: 'utf-8' })
      const oldFileContent = fs.readFileSync(oldFilePath, { encoding: 'utf-8' })
  
      result.push([
        {
          name: oldFileName,
          content: oldFileContent
        },
        {
          name: newFileName,
          content: newFileContent
        }
      ])
    })
  
    return result
  }
docs: @typedef {Object} ConfigFilesObj
  @property {string} name 文件名
  @property {string} content 文件内容
   
  取所有需要 diff 的配置文件
  
  @returns {Array<ConfigFilesObj>} 配置文件对象