Preventing JS ES6 Code Formatting

I would like to use PhpStorm for developing Javascript but there is a formatting that I can't get rid off, it's the following.

This code

 
export default DS.ActiveModelAdapter.extend({
  namespace: 'api'
});
 

 
Becomes
 
export default
DS.ActiveModelAdapter.extend({
  namespace: 'api'
});


I looked in Code Styles > Javascript and could not find the setting to prevent this formatting.

2 comments
Comment actions Permalink

can't recreate using default javascript code style settings. What javascript language version is chosen in Settings/javaScript, JavaScript language version? Such formatting usually means that the syntax can't be parsed correctly

0
Comment actions Permalink

Thanks that was it. My Javacript version was 5.1 but this new syntax i'm using was for 6.0

0

Please sign in to leave a comment.