How to fix Prettier together with Stylelint?

Viewed 23

I have Prettier and Stylelint installed precisely by official documentation.

The only thing I have changed is autofixing errors by Stylelint (json file)

So the current situation is :

  1. Prettier formats my code on save
  2. Stylelint displays errors
  3. Stylelint autofixes its errors on save as well

The problem is : I keep getting annoying notifications by VS Code (at the bottom right corner) despite everything works OK

  1. Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'HTML'-files
  2. Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'CSS'-files

P.S - Default formatter is set to Prettier

0 Answers
Related