Prettier with WSL not working
I can't seem to get the "Reformat with Prettier" to work. I'm using WSL and can for example get "Fix Eslint Problems" to run just fine. I have connected my NPM/Node to nvm installation on WSL. I have also installed the prettier plugin.
Prettier does however work from Terminal (bash) without any problems (node_modules/.bin/prettier app.js)
What happens when I try reformat is basically... nothing. Occasionally I see the "node interpreter is not correct", but the exact same setup works for eslint...
~\sites\nodejs-test\node_modules\prettier
"prettier": "1.14.0"
PhpStorm 2018.2
Windows 10 Home
The prettier package input field correctly displays the package version (I've also tried different paths such as \.bin\prettier).
Please sign in to leave a comment.
https://youtrack.jetbrains.com/issue/WEB-33838 is fixed in 2018.2.1 (not yet released)