File format defer to Javascript Standard Fix?

I'm using Standard JS in a react project. I've followed the directions jetbrains has and everything is working except code formatting jsx files. There is a bit of difference for html compared to standard. For lint errors, there is an action to run "standard --fix". Is there a way to map that to a shortcut? Or to defer the intellij formatter to use 'standard --fix'?

3 comments
Comment actions Permalink

You can assign preferred shortcut to Plug-ins | JavaScript Support | Fix Standard Code Style Problems in Settings | Keymap, or create a file watcher to run `standard --fix` on Ctrl+S:

 

0
Comment actions Permalink

great, do you know the path on osx?

0
Comment actions Permalink

if you have standard instaled locally in your project, it would be node_modules/.bin/standard

0

Please sign in to leave a comment.