Skip to content

Commit 826da24

Browse files
committed
Use require to import config file
This allows to import `.template-lintrc.js` file.
1 parent 0006360 commit 826da24

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)