Skip to content

Add maxWarnings to configuration object #9165

@mrginglymus

Description

@mrginglymus

What minimal example or steps are needed to reproduce the bug?

Any css that generates a warning

What minimal configuration is needed to reproduce the bug?

export default {
  maxWarnings: 0
}

How did you run Stylelint?

yarn stylelint

Which Stylelint-related dependencies are you using?

stylelint@17.5.0

What did you expect to happen?

Exit code -2 on warnings

What actually happened?

Exit code 0 on warnings - warnings now only raise -2 exit code if --mw is passed.

Do you have a proposal to fix the bug?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions