Skip to content

Commit

Permalink
Fix #3822
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode authored Mar 11, 2019
1 parent ca9eba6 commit e270e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit e270e9b

Please sign in to comment.