Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
validators.forEach(file => {
if (!file) {
return
}
try {
const filename = path.join(process.cwd(), file)
const rule = isRelativePath(file) ? require(filename) : require.main.require(file)
registerMJRule(rule)
} catch (e) {
warning(false, `.mjmlconfig file ${file} opened from ${cwd} has an error : ${e}`)
}
})
}