Skip to content

Latest commit

History

History

formatter-eslint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

@putout/formatter-eslint NPM version

馃悐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