-
-
Notifications
You must be signed in to change notification settings - Fork 480
Description
Now that prettier supports CSS/SCSS formatting, it would be really nice to integrate prettier-vscode with stylelint in a manner similar to what is done with eslint integration for JavaScript files.
Ideally, there should be a config option to enable/disable this integration (just like with eslint), so that the SCSS/CSS styles formatted with prettier are then auto-fixed via stylelint to confirm to stylelint rules.
Stylelint is adding more and more support for its --fix
functionality.
Here's one of the use cases I have: The source base I am working on has a stylelint rule that all color HEX values must be uppercase. Prettier formats the HEX values to be lowercase, which breaks stylelint checks.
And since prettier is an 'opinionated' formatter, it doesn't provide a way to configure this behavior.