question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Formatter to allow different configuration

See original GitHub issue

Currently all the Formatters don’t allow configuration object to be passed.

https://github.com/eslint/eslint/blob/master/lib/formatters/stylish.js#L28

In my case I would like to add a flag to print or not the total for the test results.

Tell us about your environment

  • ESLint Version: v3.12.2
  • Node Version: v6.9.1
  • npm Version: v3.10.9

What parser (default, Babel-ESLint, etc.) are you using? Default

Are you guys open to adding options capabilities to Formatter? I would be happy to contribute this as a pull request.


formatter(report.results, {
  printTotal: false
})

To remove the total from the console output, I’m currently creating my own formatter based on the great stylish formatter available in eslint.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alansouzaticommented, Dec 20, 2016

Cool. I will let you know when I publish it

0reactions
platinumazurecommented, Dec 21, 2016

I’m going to close this issue since the original question has been answered, but please feel free to continue the discussion as needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom formatters in ASP.NET Core Web API - Microsoft Learn
Configure MVC to use a custom formatter​​ var builder = WebApplication. CreateBuilder(args); builder.
Read more >
ASP.NET Web API: Media-Type Formatters - TutorialsTeacher
Media type formatters are the classes responsible for serializing request/response data so that Web API can understand the request data format and send...
Read more >
Per Route Formatter Configuration in Web API - Stack Overflow
I was however wondering if there is a way to configure formatters at a per route level because that is the level of...
Read more >
Add allow-mixed-uninlined-format-args config #9865 - GitHub
Implement allow-mixed-uninlined-format-args config param to change the behavior of the uninlined_format_args lint. Now it is a part of style per Zulip chat, ...
Read more >
Configuration File - Prettier
Overrides let you have different configuration for certain file extensions, folders and specific files. Prettier borrows ESLint's override format. JSON:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found