Skip to content

Commit cbe5871

Browse files
author
Robert Jackson
authored
Merge pull request #32 from zonkyio/require-config-file
Use require to import config file
2 parents 0006360 + 826da24 commit cbe5871

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/check-hbs-template-literals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
const extendedOptions = context.options[1]
5858
const filename = extendedOptions.ConfigFile
5959
if (filename && fs.existsSync(filename)) {
60-
config = JSON.parse(fs.readFileSync(filename))
60+
config = require(filename)
6161
linter = new TemplateLinter({config})
6262
}
6363
}

0 commit comments

Comments
 (0)