funkhaus / fh-deploy

Deploy files to a server via SFTP.
1 stars 0 forks source link

Parse config with library rather than manually #10

Closed johndigital closed 5 years ago

johndigital commented 6 years ago

Just came across this while setting up prettier: https://github.com/davidtheclark/cosmiconfig

Find and load a configuration object from

  • a package.json property (anywhere up the directory tree)
  • a JSON or YAML "rc file" (anywhere up the directory tree)
  • a .config.js CommonJS module (anywhere up the directory tree)

That's what prettier uses to set their config, probably good for us to do the same thing rather than doing it manually like we are.

SaFrMo commented 5 years ago

Great catch! Added in 4dcd9aa.