From 30ad960994e013e11849cf3209508f162d5d50e3 Mon Sep 17 00:00:00 2001 From: Willyham Date: Wed, 14 Oct 2015 18:20:36 +0100 Subject: [PATCH] Allow overriding of path for editorconfig --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2f9e26b0d..36e6067ac 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ function lintText (text, opts, cb) { opts = parseOpts(opts) cb = dezalgo(cb) - editorConfigGetIndent(process.cwd(), function (err, indent) { + editorConfigGetIndent(opts.cwd, function (err, indent) { if (err) return cb(err) opts.indent = indent var result