Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSX react/jsx-curly-spacing IntelliJ

I'm using IDEA 2017.2. I need to setup JSX codestyle so there are spaces between curly braces like { event.series }. However, it autoformats it to {event.series}

I have these checked in Javascript -> Spaces.

spaces for objects etc checked

Where can I set it up so it complies with ESLint's react/jsx-curly-spacing set to "always"?


I have this

I have this

I want this

I want this

like image 748
simPod Avatar asked Nov 02 '25 04:11

simPod


1 Answers

In 2017.2, it is Settings | Editor | Code Style | JavaScript | Spaces, Other/Within interpolation expressions:

enter image description here

This option affects JSX braces as well as Angular interpolations

like image 149
lena Avatar answered Nov 04 '25 19:11

lena



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!