hint icon indicating copy to clipboard operation
hint copied to clipboard

[Bug] CLI option -o breaks with multiple formatters in .hintrc

Open masi opened this issue 4 years ago • 0 comments

🐛 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

  • hint version: 6.1.3
  • Node.js version: 14.15.5

webhint configuration

webhint’s configuration
{
  "formatters": ["html", "stylish"],
}

masi avatar Mar 08 '21 14:03 masi