@putout/formatter-eslint

2.0.2 • Public • Published

@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

Package Sidebar

Install

npm i @putout/formatter-eslint

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

4.94 kB

Total Files

4

Last publish

Collaborators

  • coderaiser