Skip to content

Commit e270e9b

Browse files
authored
Fix #3822
1 parent ca9eba6 commit e270e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports.CONFIG_FILES = [
3535
const parsers = (exports.parsers = {
3636
yaml: filepath =>
3737
require('js-yaml').safeLoad(fs.readFileSync(filepath, 'utf8')),
38-
js: filepath => require(filepath),
38+
js: filepath => require(path.resolve(filepath)),
3939
json: filepath =>
4040
JSON.parse(
4141
require('strip-json-comments')(fs.readFileSync(filepath, 'utf8'))

0 commit comments

Comments
 (0)