vscode-stylelint icon indicating copy to clipboard operation
vscode-stylelint copied to clipboard

[Feature]: add vscode option to override severity

Open nstringham opened this issue 10 months ago • 4 comments

What problem does this feature solve?

I would like my stylelint errors to be errors and cause a non-zero exit code in github actions but appear as yellow in SVCode

How does this feature solve the problem?

with the eslint vscode extension I can do this as follows:

"eslint.rules.customizations": [{ "rule": "*", "severity": "downgrade" }],

What are some alternatives to this feature?

allow the the use of "stylelint.config" in addition to loading a config file

Code of Conduct

  • [x] I agree to follow vscode-stylelint's Code of Conduct

nstringham avatar Feb 04 '25 19:02 nstringham

similar to https://github.com/stylelint/vscode-stylelint/issues/615

nstringham avatar Feb 04 '25 19:02 nstringham

Looks like I just had the syntax wrong.

the following works for me:

{
  "stylelint.config": {
    "extends": ["./stylelint.config"],
    "defaultSeverity": "warning"
  }
}

It would still be nice to have a downgrade option like eslint but this is good enough

nstringham avatar Feb 04 '25 19:02 nstringham

related

microsoft/vscode-eslint#1199 https://youtrack.jetbrains.com/issue/WEB-66035/Allow-overriding-individual-ESLint-severity-levels-to-desired-inspection-severity

Mouvedia avatar Feb 06 '25 05:02 Mouvedia

Is there any update?

yingzhi0808 avatar Mar 13 '25 03:03 yingzhi0808