Open AprildreamMI opened 1 year ago
Found the reason, it's so strange that "stylelint.config": {}
cannot exist in vscode's settings file
# settings.json
{
"stylelint.config": {}
}
The presence of this line will disable stylelint, but why this line is generated is completely beyond me
Hi @AprildreamMI, I've transferred this issue to the VSCode extension repository (from the main one).
For what it's worth, I'm not able to reproduce your example from a brand-new VSCode installation (ex download VSCode -> install plugin -> run npm init stylelint
-- nothing is produced in the config for me / it works as intended). Is it possible that you've previously changed the setting?
What steps are needed to reproduce the bug?
npm init stylelint
a{}
h1 { background-size: 0,0; }
{ "extends": [ "stylelint-config-standard" ], "rules": { "value-list-comma-space-after": "always" } }
What actually happened?
Error not recognised in vscode(1.77.0), no red wavy line
Does the bug relate to non-standard syntax?
no
Proposal to fix the bug
No response