Closed timhettler closed 1 year ago
I don't use Stylelint VS Code extension. So I can't say anything for sure.
Stylelint does run on a whole file always. This package helps Stylelint identify styles blocks, and then Stylelint rules are run on these blocks.
Is there an error or an issue you're experiencing?
I think I've managed to get this working. I had to manually add the custom syntax to the plugin settings (it wasn't able to infer from the .stylelintrc
file). For anyone else with this problem, here are the workspace settings I edited:
"stylelint.customSyntax": "postcss-styled-syntax",
"stylelint.validate": [
"typescriptreact",
"javascriptreact"
]
I'm not sure what was the issues. Official Stylelint VS Code extension works without "stylelint.customSyntax"
VS Code settings, if customSyntax
is specified in the .stylelintrc
. In initial message I don't see any issues.
Hello, I am trying to get in-editor highlighting to work with Stylelint VSCode and this plugin. When I add
typescriptreact
to thestylelint.validate
configuration, the entire file is checked, not just the styling blocks.My stylelint config:
Please let me know if you have any advice on how to get in-editor linting to work!