@putout/formatter-eslint
v2.0.2
Published
šPutout formatter for using ESLint formatters
Downloads
10
Maintainers
Readme
@putout/formatter-eslint
šPutout formatter for using ESLint formatters.
Install
npm i putout @putout/formatter-eslint
Usage
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
License
MIT