Search code examples
webstormjetbrains-ideprettier

Set up config for prettier.js JetBrains


I use WebStorm latest version and I don't like to use double quotes:D

The question is how do I set up my own config for the prettier.js embedded
in the JetBrains product? (Ctrl+Alt+L)


Solution

  • WebStorm doesn't embed any prettier configs. You have to create your own prettier configuration file in your project folder (or add "prettier" key to your package.json) and add the desired rules there, like

    {
      "singleQuote": true
    }