code: function getFileInfo(filePath, opts) {
    return createIgnorer(opts.ignorePath, opts.withNodeModules).then(ignorer =>
      _getFileInfo(
        ignorer,
        normalizeFilePath(filePath, opts.ignorePath),
        opts.plugins
      )
    );
  }
docs: @typedef {{ ignorePath?: string, withNodeModules?: boolean, plugins: object }} FileInfoOptions
  @typedef {{ ignored: boolean, inferredParser: string | null }} FileInfoResult
   
  @param {string} filePath
  @param {FileInfoOptions} opts
  @returns {Promise<FileInfoResult>}
  
  Please note that prettier.getFileInfo() expects opts.plugins to be an array of paths,
  not an object. A transformation from this array to an object is automatically done
  internally by the method wrapper. See withPlugins() in index.js.