Request: Formatter to allow different configuration
See original GitHub issueCurrently 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:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool. I will let you know when I publish it
I’m going to close this issue since the original question has been answered, but please feel free to continue the discussion as needed.