Accept both esnext and configPath options

Fixes #47 
@sindresorhus perhaps you have a better error message in mind?