You can check the answer to this problem on github, where I made a ticket some time ago:

https://github.com/prettier/prettier-vscode/issues/1051


I now have a better solution for using stylelint in VSCode:

I have a better option to use the stylelint, because the stylelint owner have created the official VSCode plugin!

https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint

The plugin works almost out of the box. What you need to do is set up. You can use just settings.json in VSCode. Small example:

"stylelint.config": {
    "rules": {
        "at-rule-name-case": "lower",
        "at-rule-name-space-after": "always-single-line",
        "at-rule-semicolon-newline-after": "always",
    }
}

Do you need a ready-to-use configuration?

No problem - you have to check this

  • https://github.com/stylelint/stylelint-config-standard
  • https://github.com/stylelint/stylelint-config-recommended

Do you need Formatting option (Shift + Alt + F)?

No problem. You can define keybinding for option Fix all auto-fixable problems. For example:

{
    "key": "alt+shift+f",
    "command": "stylelint.executeAutofix",
    "when": "editorTextFocus && editorLangId == 'css'"
},
{
    "key": "alt+shift+f",
    "command": "stylelint.executeAutofix",
    "when": "editorTextFocus && editorLangId == 'scss'"
},
{
    "key": "alt+shift+f",
    "command": "stylelint.executeAutofix",
    "when": "editorTextFocus && editorLangId == 'less'"
}

Remember that not all stylelint options are available for autofixing (but most are)

Answer from kanlukasz on Stack Overflow
🌐
npm
npmjs.com › package › stylelint-config-prettier
stylelint-config-prettier - npm
CLI helper inspired by tslint-config-prettier. Original disabled ruleset copied from prettier-stylelint.
      » npm install stylelint-config-prettier
    
Published   Feb 10, 2023
Version   9.0.5
Author   Shannon Moeller
🌐
GitHub
github.com › prettier › stylelint-config-prettier
GitHub - prettier/stylelint-config-prettier: Turns off all rules that are unnecessary or might conflict with prettier. · GitHub
Turns off all rules that are unnecessary or might conflict with Prettier. This lets you use your favorite shareable config without letting its stylistic choices get in the way when using Prettier.
Starred by 374 users
Forked by 23 users
Languages   JavaScript 99.2% | CSS 0.8%
🌐
GitHub
github.com › prettier › stylelint-prettier
GitHub - prettier/stylelint-prettier: Stylelint plugin for Prettier formatting · GitHub
If another active Stylelint rule disagrees with prettier about how code should be formatted, it will be impossible to avoid lint errors. You should use stylelint-config-prettier to disable all stylistic Stylelint rules.
Starred by 380 users
Forked by 19 users
Languages   JavaScript
🌐
npm
npmjs.com › package › prettier-stylelint
prettier-stylelint - npm
prettier-stylelint attempts to create a prettier config based on the stylelint config, then format with prettier followed by stylelint --fix.
      » npm install prettier-stylelint
    
Published   Sep 25, 2017
Version   0.4.2
Author   Hugo Dias
🌐
Prettier
prettier.io › docs › integrating-with-linters
Integrating with Linters · Prettier
eslint-config-prettier · Check out the above links for instructions on how to install and set things up. When searching for both Prettier and your linter on the Internet you’ll probably find more related projects. These are generally not recommended, but can be useful in certain circumstances. First, we have plugins that let you run Prettier as if it was a linter rule: eslint-plugin-prettier · stylelint-prettier ·
🌐
GitHub
github.com › prettier › stylelint-config-prettier-scss › releases
Releases · prettier/stylelint-config-prettier-scss
Turns off all CSS and SCSS rules that are unnecessary or might conflict with prettier. - Releases · prettier/stylelint-config-prettier-scss
Author   prettier
🌐
npm
npmjs.com › package › @stylelint › prettier-config
stylelint/prettier-config
A Stylelint shareable config for Prettier.. Latest version: 4.0.0, last published: 7 days ago. Start using @stylelint/prettier-config in your project by running `npm i @stylelint/prettier-config`. There are 1 other projects in the npm registry using @stylelint/prettier-config.
      » npm install @stylelint/prettier-config
    
Published   Oct 01, 2025
Version   4.0.0
Author   stylelint
🌐
GitHub
github.com › hugomrdias › prettier-stylelint
GitHub - hugomrdias/prettier-stylelint: code > prettier > stylelint > formatted code
prettier-stylelint attempts to create a prettier config based on the stylelint config, then format with prettier followed by stylelint --fix.
Starred by 174 users
Forked by 28 users
Languages   JavaScript 78.6% | CSS 21.4% | JavaScript 78.6% | CSS 21.4%
Find elsewhere
🌐
npm
npmjs.com › package › @lego › stylelint-config-prettier
@lego/stylelint-config-prettier - npm
{ "extends": ["tslint:latest", "@lego/stylelint-config-prettier"], "rules": { "prettier": [true, { "printWidth": 100, "semi": true, "singleQuote": true, "trailingComma": "es5", "arrowParens": "always", "proseWrap": "preserve"', }], } }
      » npm install @lego/stylelint-config-prettier
    
Published   Aug 23, 2021
Version   6.1.2
Author   Vincent Briglia
🌐
GitHub
github.com › prettier › stylelint-config-prettier › issues
prettier/stylelint-config-prettier
Turns off all rules that are unnecessary or might conflict with prettier. - prettier/stylelint-config-prettier
Author   prettier
🌐
Medium
medium.com › tbc-engineering › why-and-how-to-lint-like-a-pro-173fc4a73899
Why and How to Lint like a PRO. ESlint + Stylelint + Prettier + Husky +… | by Luka Samkharadze | TBC Engineering | Medium
July 15, 2021 - Since we no longer use Prettier in lint-staged, we don't get formatted html and json files, so we have to add this line: ... If you are trying to integrate these tools into an already existing code base, these changes might be handy: Use comments to ignore specific files or code sections for ESLint and Stylelint. You can also configure ESlint to lint specific directories only, but use Prettier for everything (You can slowly add more directories to files array) or change the severity of common problems to warn like we did on the entire Stylelint.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-set-up-eslint-prettier-stylelint-and-lint-staged-in-nextjs
How to Set Up ESLint, Prettier, StyleLint, and lint-staged in Next.js
May 30, 2025 - stylelint-config-prettier-scss extends stylelint-config-prettier and turns off those Stylint rules that conflict with Prettier's code formatting.
🌐
GitHub
github.com › prettier › stylelint-config-prettier › issues › 140
Stylelint v15 "rule is deprecated" · Issue #140 · prettier/stylelint-config-prettier
October 11, 2022 - Note As of Stylelint v15 all style-related rules have been deprecated. If you are using v15 or higher and are not making use of these deprecated rules, this plugin is no longer necessary. { - "extends": ["stylelint-config-prettier"], "ru...
Author   shannonmoeller
🌐
CSS-Tricks
css-tricks.com › prettier-stylelint-writing-clean-css-keeping-clean-code-two-tool-game
Prettier + Stylelint: Writing Very Clean CSS (Or, Keeping Clean Code is a Two-Tool Game) | CSS-Tricks
October 17, 2017 - Or you can run prettier first and then tweak the formatting with stylelint—there’s actually a specific tool, called prettier-stylelint, which can help with that. There is a standard [stylelint] configuration, but you can also get as fine-grained as you want there and configure how you please.
🌐
Prettier
prettier.io › docs › next › related-projects
Related Projects · Prettier
eslint-config-prettier turns off all ESLint rules that are unnecessary or might conflict with Prettier · eslint-plugin-prettier runs Prettier as an ESLint rule and reports differences as individual ESLint issues · prettier-eslint passes prettier ...
🌐
Masteringlinting
masteringlinting.com
Mastering Prettier & Stylelint | CSS Weekly
Integrating Prettier Into Your Workflow module overview 00:59 ... You’ll learn how to setup Stylelint, from configuring it and using it in the command line to enabling it in your editor, along with a birds-eye overview of different types of rules and how they can help you avoid errors and enforce conventions.
🌐
GitHub
github.com › prettier › stylelint-prettier › blob › main › CHANGELOG.md
stylelint-prettier/CHANGELOG.md at main · prettier/stylelint-prettier
Minimum supported prettier version is now v3.0.0. Minimum supported stylelint version is now v15.8.0. Remove stylelint-config-prettier from the recommended config. Stylelint v15 deprecated the rules that stylelint-config-prettier disabled, thus if you do not use those deprecated rules then you do not need stylelint-config-prettier.
Author   prettier
🌐
GitHub
github.com › stylelint › prettier-config
GitHub - stylelint/prettier-config: Stylelint org's shareable config for prettier
Stylelint org's shareable config for prettier. Contribute to stylelint/prettier-config development by creating an account on GitHub.
Author   stylelint