Automatic spacing of es6 method params

Hi,

I have a React ES6 functional component with props destructured one per line,

I want the formatting to be like this:

const foo = ({

  param1,

  param2,

  param3,

  param4,

}) => (

 

but Webstorm automatically formats it like this:

const foo = ({

                       param1,

                       param2,

                       param3,

                       param4,

}) => (

 

Where do I set this config to get the spacing (not tabs) that I need to comply with coding standards?

 

Thanks!

 

1

Please make sure that the option to align function parameters is disabled (Wrapping and Braces | Function declaration parameters | Align when multiline)

3

Perfect. Thanks!!!

0

请先登录再写评论。