eslint-formatter-proxy
v0.1.1
Published
<p align="center"> <!-- <img src="https://raw.githubusercontent.com/prettier/prettier-logo/refs/heads/master/images/prettier-wide-dark.svg" /> --> <h1 align="center">eslint-formatter-proxy</h1> </p>
Maintainers
Readme
Installation
pnpm add -D eslint-formatter-proxyConfiguration
ESLint does not provide a way to pass settings to custom formatters. So we have to use an environment variable.
Set ESLINT_FORMATTER_PROXY to you configuration.
It expects a list of names, or name-options tuples.
Currently the only option is outFile which writes the result to disk instead of stdout.
ESLINT_FORMATTER_PROXY='["stylish", ["json", {"outFile": "./eslint.json"}]]' eslint -f eslint-formatter-proxy
# │ │ │ │
# │ │ │ └─ Write to <cwd>/eslint.json
# │ │ │
# │ │ └────────────── Write to file instead of stdout
# │ │
# │ └──────────────────────── Use builtin "json" formatter
# │
# └─────────────────────────────────── Use the builtin "stylish" formatter to print to stdout