I am trying to get the stylelint extension to work in visual studio code. However, with no success so far. The extension with a short explanation is here:
https://marketplace.visualstudio.com/items?itemName=shinnn.stylelint
What I did so far: Add
"stylelint.enable": true,
"css.validate": false,
"scss.validate": false,
to my settings. But this only deactivates the usual linting without activating stylelint. I also read at
in a comment that one needs a stylelint.config.js
file. However, I don't have one and don't know how to create or put it (in Windows).
Edit
I found an "example configuration" file of stylelint:
https://github.com/stylelint/stylelint/blob/master/docs/user-guide/example-config.md
So, I guess part of that needs to go into the stylelint.config.js
. But which are necessary to get it to work and where do I put it?