Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let table = tab(res.messages.map(msg => {
let row = [
`\n${type(msg.type) + ' ' + line(msg.lastLine, msg.firstColumn)}`,
`\n${message(msg.message)}`
]
return row
}), {align: 'l', hsep: ''})
console.log(table)
let result = res.messages.length
if (result === 0) {
console.log(chalk.green(`\n${log.succes} ${result} Errors`))
}
console.log(chalk.red(`\n${log.warning} ${result} Errors`))
}
})