hint
hint copied to clipboard
[Bug] CLI option -o breaks with multiple formatters in .hintrc
🐛 Bug report
Description
I ran hint -c foobar with a hintrc that included "formatters": ["html", stylish"] on mutliple URLs
I got after the run for the first URL:
[Error: EISDIR: illegal operation on a directory, open '/app/tests/webhint'] {
errno: -21,
code: 'EISDIR',
syscall: 'open',
path: '/app/tests/webhint'
}
The reason is that both formatters use -o, but HTML treats it as directory and Stylish as file. I need either different CLI options or a way to configure the formatter within .hintrc.
Environment
-
hintversion: 6.1.3 -
Node.jsversion: 14.15.5
webhint configuration
webhint’s configuration
{
"formatters": ["html", "stylish"],
}