Provide integration wit stylelint
See original GitHub issueNow 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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Working on this, already have a basic version of a prettier-stylelint tool a few more tests and I’ll do a PR here adding support for it.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.