We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9eba6 commit e270e9bCopy full SHA for e270e9b
lib/cli/config.js
@@ -35,7 +35,7 @@ exports.CONFIG_FILES = [
35
const parsers = (exports.parsers = {
36
yaml: filepath =>
37
require('js-yaml').safeLoad(fs.readFileSync(filepath, 'utf8')),
38
- js: filepath => require(filepath),
+ js: filepath => require(path.resolve(filepath)),
39
json: filepath =>
40
JSON.parse(
41
require('strip-json-comments')(fs.readFileSync(filepath, 'utf8'))
0 commit comments