path.resolve(options.config)

either path is unused and can be removed, or options.config could use it for path resolution.