Skip to content

Add tally to string formatter #5590

Closed
@Sherry-hue

Description

What is the problem you're trying to solve?

I found that the output result of calling stylelint.formatters.string does not contain the prompt of error and warning number. It is necessary to summarize the current lint result:

image

On the contrary, eslint will give an error and warning number prompt at the end:

image

What solution would you like to see?

I found that in stylelint / lib / formatters / stringformatter.js, the final result is output as follows:

output = output.trim();

	if (output !== '') {
		output = `\n${output}\n\n`;
	}

return output;

Can you add error and warning number prompts at the end of output? Or do I need to open a PR to solve this problem?

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions