From e270e9bb0b55b1315dc198039c932d8084e5d0bd Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 10 Mar 2019 20:05:57 -0400 Subject: [PATCH] Fix #3822 --- lib/cli/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/config.js b/lib/cli/config.js index dd8f987ca1..aa4166e5a0 100644 --- a/lib/cli/config.js +++ b/lib/cli/config.js @@ -35,7 +35,7 @@ exports.CONFIG_FILES = [ const parsers = (exports.parsers = { yaml: filepath => require('js-yaml').safeLoad(fs.readFileSync(filepath, 'utf8')), - js: filepath => require(filepath), + js: filepath => require(path.resolve(filepath)), json: filepath => JSON.parse( require('strip-json-comments')(fs.readFileSync(filepath, 'utf8'))