xo icon indicating copy to clipboard operation
xo copied to clipboard

Metadata is missing from reports

Open GriffinSauce opened this issue 3 years ago • 1 comments

I'm writing a formatter based on the ESLint spec only to discover that the metadata is not returned from XO. That blocks quite a lot of value.

In mergeReports the metadata should be merged as well and then passed as the second parameter in log.

Background: https://eslint.org/docs/developer-guide/working-with-custom-formatters#the-data-argument

This currently already breaks the json-with-metadata reporter.

GriffinSauce avatar Dec 24 '20 14:12 GriffinSauce

I agree. It's not something I plan to work on, but a pull request is welcome.

sindresorhus avatar Dec 24 '20 14:12 sindresorhus