@quasar/app
Version:
Quasar Framework local CLI
13 lines (9 loc) • 429 B
JavaScript
const { yellow } = require('chalk')
const tips = 'You may use special comments to disable some warnings:'
+ '\n · ' + yellow('// eslint-disable-next-line') + ' to ignore the next line.'
+ '\n · ' + yellow('/* eslint-disable */') + ' to ignore all warnings in a file.\n'
module.exports = function format (error, printLog, titleFn) {
printLog(titleFn('Reported by ESLint:'))
printLog(error.message)
printLog(tips)
}