@quasar/app
Version:
Quasar Framework local CLI
16 lines (13 loc) • 410 B
JavaScript
const eslintError = require('../formatters/eslintError')
module.exports = function transform (error) {
return error.__formatter === void 0 && (
error.name === 'ESLintError'
|| error.originalStack.some(stackframe => stackframe.fileName && stackframe.fileName.indexOf('eslint-loader') > 0)
)
? {
...error,
__severity: 100,
__formatter: eslintError
}
: error
}