🐊Putout formatter for using ESLint formatters.
npm i putout @putout/formatter-eslint
To output results in ESLint format use:
putout --format eslint lib
Result example:
{
"errors": [{
"name": "/home/coderaiser/putout/packages/putout/lib/putout.js",
"places": [{
"rule": "remove-debugger",
"message": "Unexpected \"debugger\" statement",
"position": {
"line": 3,
"column": 0
}
}]
}],
"filesCount": 1,
"errorsCount": 1
}
To use eslint formatter
set it with help of env variable ESLINT_FORMATTER
.
For example to use eslint-formatter-pretty
run:
ESLINT_FORMATTER=pretty putout --format eslint lib
MIT