@WebStormIDE is there a way that I can convert a prettier config into WebStorm "native" reformatting rules, so I won't need JS to run prettier on my files?
-
-
Replying to @wolframkriesing
Hello, WebStorm has the Reformat with Prettier action (see http://jetbrains.com/help/webstorm/prettier.html#ws_prettier_reformat_code … for more info) and also lets you consistently apply Prettier code style rules as per http://jetbrains.com/help/webstorm/prettier.html#9c767cff …. Please let us know if this is what you're looking for.
1 reply 0 retweets 2 likes -
Replying to @WebStormIDE
nope. I am using this, but it requires a local install of nodejs and prettier, right? Maybe a way to convert the prettier config to the webstorm internal reformatting, to not require nodejs. Why? I have NO nodejs installed globally on the machine (just in a docker container).
1 reply 0 retweets 1 like -
Replying to @wolframkriesing
It should actually work without Node.js and Prettier if you add a `prettier` field to package.json and then use the Apply code style action at the top of the file or in the context menu
We'll file an issue to make it work when default config is used and there's no config field1 reply 0 retweets 1 like -
Replying to @WebStormIDE @wolframkriesing
Please note that the resulting code style will not be 100% compatible with Prettier. We map the Prettier code style to the options available in the IDE, but there are some rules that Prettier has that are not available or defined differently in the IDE.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
thanks a lot for the extensive answer, i will try that. cool
1 reply 0 retweets 0 likes
And here's an issue to track: https://youtrack.jetbrains.com/issue/WEB-42782
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.